  "OR" of two ``"question__startswith"`` queries::
  
      Q(question__startswith='Who') | Q(question__startswith='What')
  
  This is equivalent to the following SQL ``WHERE`` clause::
  
      WHERE question LIKE 'Who%' OR question LIKE 'What%'
  
  You can compose statements of arbitrary complexity by combining ``Q`` objects
  with the ``&``, ``|``, and ``^`` operators and use parenthetical grouping.
 
</s> remove equivalent to evaluating::
 </s> add equivalent to evaluating:

.. code-block:: text </s> remove :class:`~django.contrib.auth.models.User` object is a string in this format::
 </s> add :class:`~django.contrib.auth.models.User` object is a string in this format:

.. code-block:: text </s> remove             ...
 </s> add             # ... </s> remove settings and can retrieve the format string for a given setting name::
 </s> add settings and can retrieve the format string for a given setting name:

.. code-block:: javascript </s> remove in model ``Bar``, instead of using the model name ``bar`` as the lookup::
 </s> add in model ``Bar``, instead of using the model name ``bar`` as the lookup:

.. code-block:: pycon
This is equivalent to the following SQL ``WHERE`` clause:

.. code-block: sql
  "OR" of two ``"question__startswith"`` queries::
  
      Q(question__startswith='Who') | Q(question__startswith='What')
  
This is equivalent to the following SQL ``WHERE`` clause:

.. code-block: sql
  
      WHERE question LIKE 'Who%' OR question LIKE 'What%'
  
  You can compose statements of arbitrary complexity by combining ``Q`` objects
  with the ``&``, ``|``, and ``^`` operators and use parenthetical grouping.
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/topics/db/queries.txt