Query editor
with ethereum_profile_detail as (select evt_block_time,evt_block_number,evt_tx_hash,profileId,handle,"to" as ownerfrom link3_ethereum.ProfileNFT_evt_CreateProfile),eth_paying_count_daily as (select date_trunc('day', p.evt_block_time) as block_date,count(*) filter (where t.value > 0) as paying_mint_countfrom ethereum_profile_detail pinner join ethereum.transactions t on p.evt_block_number = t.block_number and p.evt_tx_hash = t.hashwhere p.evt_block_time >= date('2022-07-19')and t.block_time >= date('2022-07-19')group by 1),-- BNB profiles contains all handle created on ethereum (minted through airdrop)bnb_profile_detail as (select b.evt_block_time,b.evt_block_number,b.evt_tx_hash,b.profileId,b.handle,b."to" as ownerfrom link3_profile_bnb.ProfileNFT_evt_CreateProfile bleft join ethereum_profile_detail e on b.handle = e.handlewhere e.handle is null),bnb_paying_count_daily as (select date_trunc('day', p.evt_block_time) as block_date,count(*) filter (where t.value > 0) as paying_mint_countfrom bnb_profile_detail pinner join bnb.transactions t on p.evt_block_number = t.block_number and p.evt_tx_hash = t.hashwhere p.evt_block_time >= date('2022-07-19')and t.block_time >= date('2022-07-19')group by 1),combined as (select block_date,paying_mint_countfrom eth_paying_count_dailyunion allselect block_date,paying_mint_countfrom bnb_paying_count_daily)select block_date,paying_mint_count,sum(paying_mint_count) over (order by block_date) as accumulate_paying_mint_countfrom combinedorder by block_date