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),profile_daily as (select date_trunc('day', p.evt_block_time) as block_date,sum(t.value / 1e18) as mint_fee,count(*) filter (where t.value > 0) as paying_mint_count,avg(t.value / 1e18) as avg_mint_feefrom 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)select block_date,mint_fee,paying_mint_count,avg_mint_fee,sum(mint_fee) over (order by block_date) as accumulate_mint_fee,sum(paying_mint_count) over (order by block_date) as accumulate_paying_mint_countfrom profile_dailyorder by block_date