Multi-CTE pipeline + conditional aggregation pivot. Practice the canonical cross-tab shape: row dimension on one axis, column dimension flattened via SUM(CASE WHEN ...). The same shape powers cohort × outcome matrices, region × product breakdowns, and channel × stage funnels.