Query editor
WITH polygon_deployed as (SELECT'polygon' as chain,evt_block_time as timeFROM pwnsafe_polygon.PWNSafeFactory_evt_PWNSafeDeployed), ethereum_deployed as (SELECT'ethereum' as chain,evt_block_time as timeFROM pwnsafe_ethereum.PWNSafeFactory_evt_PWNSafeDeployed)SELECTdate_trunc('month', time) as month,count_if(chain = 'ethereum') as ethereum_per_month,count_if(chain = 'polygon') as polygon_per_month,sum(count_if(chain = 'ethereum')) over (order by date_trunc('month', time)) as ethereum_cumulative,sum(count_if(chain = 'polygon')) over (order by date_trunc('month', time)) as polygon_cumulative,sum(count(*)) over (order by date_trunc('month', time)) as cumulativeFROM (SELECT * FROM ethereum_deployedUNION ALLSELECT * FROM polygon_deployed)GROUP BY 1