Make a basic query and  a query with predicate