  from django.db import DEFAULT_DB_ALIAS, connection
  from django.db.models import Count, Exists, F, Max, OuterRef, Q
  from django.db.models.expressions import RawSQL
  from django.db.models.sql.constants import LOUTER
  from django.db.models.sql.where import NothingNode, WhereNode
  from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
  from django.test.utils import CaptureQueriesContext, ignore_warnings
  from django.utils.deprecation import RemovedInDjango50Warning
  
  from .models import (
 
</s> remove from django.db.models.sql.where import OR
 </s> add from django.db.models.sql.where import AND, OR </s> remove             if self.effective_connector == "OR" and votes < self.num_children:
 </s> add             if self.effective_connector == OR and votes < self.num_children: </s> remove             if self.effective_connector == "AND" or (
                self.effective_connector == "OR" and votes == self.num_children
 </s> add             if self.effective_connector == AND or (
                self.effective_connector == OR and votes == self.num_children
from django.db.models.sql.where import AND, OR, NothingNode, WhereNode
  from django.db import DEFAULT_DB_ALIAS, connection
  from django.db.models import Count, Exists, F, Max, OuterRef, Q
  from django.db.models.expressions import RawSQL
  from django.db.models.sql.constants import LOUTER
from django.db.models.sql.where import AND, OR, NothingNode, WhereNode
  from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
  from django.test.utils import CaptureQueriesContext, ignore_warnings
  from django.utils.deprecation import RemovedInDjango50Warning
  
  from .models import (
keep keep keep keep replace keep keep keep keep keep
 Used AND, OR, XOR constants instead of hard-coded values. 
tests/queries/tests.py