The body may only reference CTE names that were defined in the same request.
name must exist
Read the valid reference
The valid body references ActiveStudents.
defined reference
CTE examples are tiny finite-table transforms; recursive CTEs, materialization claims, optimizer behavior, SQL dialect completeness, and database-product claims are out of scope.
Try the missing name
A body that references Missing fails closed. Recursive claims also fail closed in this small model.
missing or recursive rejected
Summary
The scope is intentionally small: named finite tables only.