Write QueryBuilder part