create materialized view MAT_VIEW refresh on demand as select ...
create materialized view MAT_VIEW refresh on demand as select * from (select ...)