To generate raw SQL queries that is database engine independent, you can use: <a href="https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;python-sql" rel="nofollow">https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;python-sql</a>