A set operation starts with two visible input bags.
left bag and right bag
Show both inputs
The left bag has 4 rows and the right bag has 4 rows.
left rows=4
Set-operation examples are tiny finite bag transforms; SQL dialect details, type coercion, collations, ordering clauses, performance, and product behavior are out of scope.
Read duplicate counts
The count table makes duplicate rows visible before any operation is trusted.
bag counts are visible
Summary
This book tracks bag counts and then renders exact result rows.