Report question

Question: PostgreSQL nested CTE and UNION