One minor correction - the `summarize` function in duckdb can also be used in CTEs etc.
But you have to wrap the `summarize` in a `from` clause like this:
with some_table as (from range(10)), x as (from (summarize some_table)) from x;