WHERE filters before projection and duplicate removal.
highlighted = computed this step
WHERE before DISTINCT
WHERE filters source rows before projection and DISTINCT.
WHERE then projection then DISTINCT
Read pipeline facts
WHERE drops 2 rows before DISTINCT returns 2 rows.
WHERE dropped rows=2
DISTINCT examples are tiny finite bag-to-table transforms; this model shows first-seen representatives for deterministic display and does not claim product SQL output ordering.
Closed rows never project
Rows dropped by WHERE do not enter the projected duplicate groups.
filter first
Summary
The pipeline order is visible: filter, project, then remove duplicates.