BETWEEN with a NULL row value evaluates to UNKNOWN, and WHERE keeps only TRUE.
highlighted = computed this step
Input table
Start with order amounts where one amount is NULL.
Order amounts
Where query
Evaluate the inclusive range predicate for each amount.
WHERE amount BETWEEN bounds
Predicate truth
The NULL amount produces UNKNOWN rather than TRUE.
TRUE, UNKNOWN, FALSE
Filtered output
Only the row with a known in-range amount remains.
known in-range row