This visual execution shows how UNION and UNION ALL work in PostgreSQL. First, two SELECT queries run separately to get their results. Then, these results combine into one list. UNION removes duplicate rows from this combined list before returning it, while UNION ALL keeps all rows including duplicates. The execution table traces each step: running each SELECT, combining results, removing duplicates for UNION, and returning the final output. Variables track the state of results after each step. Key moments clarify why duplicates are removed only by UNION and how the queries execute separately before combining. The quiz tests understanding of when duplicates are removed and when results combine. The snapshot summarizes the main differences and usage tips for UNION and UNION ALL.