Query editor
selectdate_trunc('month',block_time) as month,count(*) as mints,sum(count(*))over(order by date_trunc('month',block_time)) as cumulative_mints,sum(amount_original) as eth,sum(sum(amount_original))over(order by date_trunc('month',block_time)) as cumulative_eth,sum(amount_usd) as usd,sum(sum(amount_usd))over(order by date_trunc('month',block_time)) as cumulative_usd,avg(amount_usd) as avg_usd,avg(amount_original) as avg_ethfrom nft.mintswhere (nft_contract_address IN (select distinct soundEditionfrom sound_xyz_ethereum.SoundCreatorV1_evt_SoundEditionCreatedUNIONselect distinct contract_addressfrom ethereum.logswhere block_time > timestamp '2021-12-01'--Dec-02-2021and topic0 = 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0 --OwnershipTransferredand topic1 = 0x00000000000000000000000078e3adc0e811e4f93bd9f1f9389b923c9a3355c2)and blockchain = 'ethereum')or (nft_contract_address IN (select distinct edition from sound_xyz_optimism.RangeEditionMinterV2_evt_Minted)and blockchain = 'optimism')and block_time > timestamp '2021-12-01'and amount_raw > uint256 '0'group by 1