Convert nested subqueries → readable CTEs (WITH … AS) with naming suggestions.
Output will appear here…