Paste your minified or compressed SQL in the first textbox and click on button "Beautify SQL", wait for few seconds and you should get beautified SQL in the second text-box, copy it and use it.
Benefits of Clean or Beautified code(CSS/HTML/JS/XML/SQL)
Easy to read or change code
Easy to add new comments
Better to write clean and commented code while working in a team with lots of developers