added query based on QueryBuilder