Are there materialized views in sqlite?
The alternative means the CTE is copy-pasted essentially and them evaluated.
The closest one can get to materialized views in SQLite is probably with CREATE TABLE AS. Drop and recreate.
The VIEW itself is not a "materialized" view, but when the (normal) view is instantiated within a single query it is treated as MATERIALIZED because it is used multiple times in the query execution: https://www.sqlite.org/lang_with.html#materialization_hints