Query editor
with hash as (selectevt_tx_hash as hsfromerc20_avalanche_c.evt_Transferwhere ("from" = 0x2b0cEd176077bef60FCF0a67D4AadE06152BadE8or "from" = 0x444fc181C08DC8B6425b373dD3334b79AC86Bb6dor "from" = 0x8D9822f2458BE1e8AdD006A0827dB2aa8f3006A4)and evt_block_time > DATE '2022-12-28'group by 1),buy as (selectevt_block_time as buy_bt,"to" as buy_address,evt_tx_hash as buy_hs,value/1e18 as buy_amountfromerc20_avalanche_c.evt_Transferwhere "from" = 0x2b0cEd176077bef60FCF0a67D4AadE06152BadE8and contract_address = 0xFB6523a6799129caF098E8a500A787135A5eaE49and evt_block_time > DATE '2022-12-28'and evt_block_number < 29035699union allselectevt_block_time as buy_bt,"to" as buy_address,evt_tx_hash as buy_hs,value/1e18 as buy_amountfromerc20_avalanche_c.evt_Transferwhere "from" = 0x444fc181C08DC8B6425b373dD3334b79AC86Bb6dand contract_address = 0xFB6523a6799129caF098E8a500A787135A5eaE49and evt_block_number > 29030483union allselectevt_block_time as buy_bt,"to" as buy_address,evt_tx_hash as buy_hs,value/1e18 as buy_amountfromerc20_avalanche_c.evt_Transferwhere "from" = 0x8D9822f2458BE1e8AdD006A0827dB2aa8f3006A4and contract_address = 0xFB6523a6799129caF098E8a500A787135A5eaE49and evt_block_number > 29507360),buy1 as (selectbuy_bt,buy_address,buy_hs,sum(buy_amount) as buy_amountfrom buygroup by 1,2,3