null checks in queries