Splitting a query with range() - Apache TinkerPop