docs: def query(self):
          """ Main accounts query """
          query = (
              self.book.session.query(Account)
              .join(Commodity)
              .filter(Commodity.namespace != "template")
              .filter(Account.type != AccountType.root.value)
          )
          return query