SQL inspector

Parses SELECT statements: tables, columns and aliases, WHERE, GROUP BY, ORDER BY, LIMIT, and formats the query.