sql_format function

Format an SQL Query