def as_nested_sql(self):
        obj = self.clone()
        obj.clear_ordering(True)
        obj.bump_prefix()
        return obj.as_sql()
Perform the same functionality as the as_sql() method, returning an
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/sql/query.py/BaseQuery.as_nested_sql