query condition tests pass