Expected SELECT facts are assertions only.

highlighted = computed this step

Honest by construction

Expected SELECT facts are assertions only.

compiler is source of truth\text{compiler is source of truth}

Render checked rows

The guarded SELECT list renders 4 output rows after recomputation.

checked rows=4\text{checked rows}=4

SELECT-list examples are tiny finite-table transforms; DISTINCT, aggregation, type coercion, optimizer behavior, and database-product claims are out of scope.

Honest by construction: base rowsitemqtybonusstatuspen31openmug20opencup21closedtagNULL1open SELECT list itemspositionkindsourceoutput0columnitemitem1addqty plus bonustotal SELECT output rowsitemtotalpen4mug2cup3tagNULL SELECT factsfactvalueinputRowCount4outputRowCount4outputColumnCount2duplicateOutputRows0rowOrdersource_orderdistinctAppliedno

Try to tamper

Wrong expected facts, derived sidecars, missing columns, duplicate labels, bools, floats, and invalid expressions fail closed.

tamper rejected\text{tamper rejected}

Summary

The book shows exact finite SELECT-list behavior only; product SQL behavior is outside the model.

scoped SELECT model\text{scoped SELECT model}