Less-than and greater-than use exact same-type order.
highlighted = computed this step
Ordered comparisons
Less-than and greater-than compare exact same-type values.
< and >
Greater than
The greater-than example keeps 1 row.
gt TRUE=1
Comparison examples are tiny finite-table transforms with SQL-style TRUE/FALSE/UNKNOWN results; SQL dialect completeness, type coercion, optimizer behavior, indexing, and product claims are out of scope.
Less than
The less-than example keeps 3 rows.
lt TRUE=3
Comparison examples are tiny finite-table transforms with SQL-style TRUE/FALSE/UNKNOWN results; SQL dialect completeness, type coercion, optimizer behavior, indexing, and product claims are out of scope.
Summary
Ordered comparisons are exact here; performance, indexes, and type coercion are outside the model.