Query editor
withethereum as (SELECTDATE_TRUNC('month', created_block_time) AS month,COUNT(DISTINCT dao) AS daosFROM dao.addresseswhere dao_creator_tool = 'aragon'and blockchain = 'ethereum'GROUP BY 1),polygon as (SELECTDATE_TRUNC('month', created_block_time) AS month,COUNT(DISTINCT dao) AS daosFROM dao.addresseswhere dao_creator_tool = 'aragon'and blockchain = 'polygon'GROUP BY 1),base as(SELECTDATE_TRUNC('month', block_time) AS month,COUNT(distinct dao_address) AS daosFROM (WITH daos_created as (selectl.block_time,from_utf8(bytearray_substring (l.data, 65, 32)) AS dao_name,bytearray_ltrim(l.topic1) as dao_address,bytearray_ltrim(l.topic2) as creator_address,l.contract_address as dao_factory_address,l.tx_hash as tx_hashfrom base.logs lwhere block_number >= 1 and topic0 = 0xbc0b11fe649bb4d67c7fb40936163e5423f45c3ae83fbd8f8f8c75e1a3fa97af),joined as (selectblock_time, dao_name,dao_address, creator_address,d.dao_factory_address, d.tx_hashfrom daos_created d)select * from joined order by 1 desc) GROUP BY 1),pre_data as(SELECT e.month,e.daos as ethereum, p.daos as polygon, b.daos as base,e.daos + coalesce(p.daos,0) + coalesce(b.daos,0) as allfrom ethereum eleft join polygon p on e.month = p.monthleft join base b on e.month = b.month)select month, ethereum, polygon, base,SUM(all) OVER (ORDER BY month) AS cumulative_countfrom pre_dataORDER BY 1 desc