3👍
✅
I think you’re looking for Query.from_statement
: http://www.sqlalchemy.org/docs/orm/query.html#sqlalchemy.orm.query.Query.from_statement
Source:stackexchange.com