Ekstrak SQL dari objek kueri SQLALCHEMY

>>> from sqlalchemy.dialects import postgresql
>>> print str(q.statement.compile(dialect=postgresql.dialect()))
Gifted Gull