code: def parse_query(self, query):
          
          logger.debug(u'query to parse2: {}'.format(query))
  
          # this should find all records
          if query == {} or query is None:
              return Query()._id != u'-1'  # noqa
  
          q = None
          # find the final result of the generator
          for c in self.parse_condition(query):
              if q is None:
                  q = c
              else:
                  q = q & c
  
          logger.debug(u'new query item2: {}'.format(q))
  
          return q
docs: Creates a tinydb Query() object from the query dict
  
          :param query: object containing the dictionary representation of the
          query
          :return: composite Query()