gsi to a query builder