docs: def boolean_operator_query(boolean_operator):
      """Generate boolean operator checking function."""
      def _boolean_operator_query(expressions):
          """Apply boolean operator to expressions."""
          def _apply_boolean_operator(query_function, expressions=expressions):
              """Return if expressions with boolean operator are satisfied."""
              compiled_expressions = [compile_query(e) for e in expressions]
              return reduce(
                  boolean_operator,
                  [e(query_function) for e in compiled_expressions]
              )
  
          return _apply_boolean_operator
      return _boolean_operator_query