The CTE is part of the query.
res := with sample_cte as (...) select example_col FROM sample_cte;
?