docs: def query(self):
          """ Returns the base query which filters out data for all queries. """
          query = (
              self.book.session.query(Commodity)
              .filter(Commodity.namespace != "CURRENCY",
                      Commodity.namespace != "template")
          )
          return query