SQL Formatter

Put your mangled SQL in the box below, then tab or click outside the box (don't forget to play with the options on the right!)