Query editor
with a as(selectuserWallet as wa,evt_block_time as dt,amount as amountfrom xeta_avalanche_c.XetaToken_evt_CreatingXonEventwhere evt_block_number < 22095237union allselectuserWallet as wa,evt_block_time as dt,amount as amountfromxeta_avalanche_c.XetaToken_evt_CreatingXonFromXpreEventwhere evt_block_number < 22095237union allselectuserWallet as wa,evt_block_time as dt,amount as amountfromxetacapital_avalanche_c.X3taToken_evt_CreatingXonEventunion allselectuserWallet as wa,evt_block_time as dt,amount as amountfromxetausdt_avalanche_c.XonManagement_evt_CreatingXonEvent),b as (selectwa,amount,dt,row_number() over (partition by wa order by dt) as seqnumfrom a),new_mint as (Selectdate_trunc('day',dt) as dt,count(amount) as new_wallet_xonfrombwhere seqnum = 1group by 1order by 1 desc)selectdt,new_wallet_xon as New_Wallets,