SqlUtils: pretty_sql: Improve formating of subqueries