SQL Pretty Printer

Paste an escaped JavaScript string (including surrounding quotes). Lines will be joined, the string unescaped, and SQL clauses split onto separate sections.