1. Why format SQL
One-line or ORM-generated SQL becomes hard to read as joins pile up. Breaking it into clauses (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, etc.) with consistent indentation makes it instantly clear which tables join on what condition and what the WHERE filters are β speeding up code review and debugging.