QueryBuilder integrated into Query class