Found nice resource for SQL formatting: http://sqlformat.appspot.com/ . Service allows you to get nice SQL output from existing query quickly, so formatting:
1 2 3 4 |
|
will result in
1 2 3 4 |
|
which looks nice and more readable, especially when you have long queries. Basicly service is demonstration of Python library python-sqlparse which is more pleasant. Enjoy it!