[rqlrewrite] Enhance detection of need for Exists node
We actually want one only if this is not a (`And` / `Or`) binary tree of `Not` or
`Exists` nodes, so write a recursive function to tell so.
Related to #17074119
Tutorials
~~~~~~~~~
We present a few tutorials of different levels. The blog building
tutorial introduces one smoothly to the basic concepts.
Then there is a photo gallery construction tutorial which highlights
more advanced concepts such as unit tests, security settings,
migration scripts.
.. toctree::
:maxdepth: 1
base/index
advanced/index
tools/windmill.rst
textreports/index
dataimport/index