move queryBuilder up to the QueryObject