Query editor
with v1 as(SELECTDATE_TRUNC('month', factory.evt_block_time) AS month,COUNT(dao) AS daosFROMaragon_polygon.dao_factory_evt_DeployDAO AS factoryGROUP BY 1),v2 as(SELECTDATE_TRUNC('month', block_time) AS month,COUNT(*) AS daosFROM query_2741480 -- Aragon OSx - DAOs List - Polygon https://dune.com/queries/2741480GROUP BY 1),pre_data as(select coalesce(v1.month,v2.month) as month, v1.daos as v1, v2.daos as v2,coalesce(v1.daos,0) + coalesce(v2.daos,0) as allfrom v1full outer join v2 on v1.month = v2.monthORDER BY 1)select month, v1, v2, all,SUM(all) OVER (ORDER BY month) AS cumulativefrom pre_dataORDER BY 1