Concept Flow - CTE materialization behavior
Start Query Execution
Identify CTE
Materialize CTE Result
Use Materialized Result in Main Query
Return Final Result
End
The query execution first identifies the CTE, fully computes and stores its result (materializes it), then uses this stored result in the main query before returning the final output.