@_generative(_no_clauseelement_condition)
def from_statement(self, statement):
    'Execute the given SELECT statement and return results.\n\n        This method bypasses all internal statement compilation, and the\n        statement is executed without modification.\n\n        The statement is typically either a :func:`~.expression.text`\n        or :func:`~.expression.select` construct, and should return the set\n        of columns\n        appropriate to the entity class represented by this :class:`.Query`.\n\n        .. seealso::\n\n            :ref:`orm_tutorial_literal_sql` - usage examples in the\n            ORM tutorial\n\n        '
    statement = expression._expression_literal_as_text(statement)
    if (not isinstance(statement, (expression.TextClause, expression.SelectBase))):
        raise sa_exc.ArgumentError('from_statement accepts text(), select(), and union() objects only.')
    self._statement = statement
Execute the given SELECT statement and return results.

This method bypasses all internal statement compilation, and the
statement is executed without modification.

The statement is typically either a :func:`~.expression.text`
or :func:`~.expression.select` construct, and should return the set
of columns
appropriate to the entity class represented by this :class:`.Query`.

.. seealso::

    :ref:`orm_tutorial_literal_sql` - usage examples in the
    ORM tutorial
@_generative(_no_clauseelement_condition)
def from_statement(self, statement):
    'Execute the given SELECT statement and return results.\n\n        This method bypasses all internal statement compilation, and the\n        statement is executed without modification.\n\n        The statement is typically either a :func:`~.expression.text`\n        or :func:`~.expression.select` construct, and should return the set\n        of columns\n        appropriate to the entity class represented by this :class:`.Query`.\n\n        .. seealso::\n\n            :ref:`orm_tutorial_literal_sql` - usage examples in the\n            ORM tutorial\n\n        '
    statement = expression._expression_literal_as_text(statement)
    if (not isinstance(statement, (expression.TextClause, expression.SelectBase))):
        raise sa_exc.ArgumentError('from_statement accepts text(), select(), and union() objects only.')
    self._statement = statement