Return a query if no 'when' clause is specified