The body query can read from the named CTE result.
body reads CTE name
Read the reference
The body references ActiveStudents and returns 2 rows.
body rows=2
CTE examples are tiny finite-table transforms; recursive CTEs, materialization claims, optimizer behavior, SQL dialect completeness, and database-product claims are out of scope.
Same rows
Here the body is just the CTE reference, so the body output matches the CTE output.
body = CTE ref
Summary
A CTE reference is a named table lookup inside the scoped request.