Make queries without subqueries