docs: def sql(self):
          """
          Get sql for the current query.
          """
          clone = self.query.clone()
          sql, params = clone.get_compiler(using=self.db).as_sql()
          return sql % params