'Return the full SELECT statement represented by this
:class:`.Query`, converted to a scalar subquery.
Analogous to :meth:`sqlalchemy.sql.expression.SelectBase.as_scalar`.
.. versionadded:: 0.6.5'

def as_scalar(self):

    return self.enable_eagerloads(False).statement.as_scalar()
