Query editor
---from 0xTayasawith loot_mint as (select "evt_block_time" ,"evt_tx_hash","from","to",id as id, sum(amt) as amt from(select"evt_block_time" ,"evt_tx_hash", "from","to",cast(id as varchar) as id, sum(cast(value as double)) as amtfrom erc1155_polygon.evt_TransferSinglewhere contract_address= 0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and "from" = 0x0000000000000000000000000000000000000000and evt_block_time >= cast('2022-12-08' as timestamp) --contract creation dateand "operator" =0x992f29838675aa0f05914a004f49e2fed9aeeeeband 1 <= {{Synchronize}}group by 1,2,3,4,5union allselect "evt_block_time" ,"evt_tx_hash","from","to",cast(id as varchar) as id,sum(cast(value as double)) as amtfrom(select "evt_block_time","evt_tx_hash","from","to",id,valuefrom erc1155_polygon.evt_TransferBatchcross join unnest("ids","values") as tbl(id,value)where contract_address=0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and evt_block_time >= cast('2022-12-08' as timestamp) --contract creation dateand "operator" =0x992f29838675aa0f05914a004f49e2fed9aeeeeband "from" = 0x0000000000000000000000000000000000000000) sgroup by 1,2,3,4,5)tgroup by 1,2,3,4,5),crate_burn as (select "evt_block_time" ,"evt_tx_hash","from","to",id as id, sum(amt) as amt from(select"evt_block_time" ,"evt_tx_hash","from","to",cast(id as varchar) as id, -sum(case when value is not null then cast(value as double) else 0 end) as amtfrom erc1155_polygon.evt_TransferSinglewhere contract_address=0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and "to" = 0x0000000000000000000000000000000000000000and evt_block_time >= cast('2022-12-08' as timestamp) --contract creation dateand "operator" =0x992f29838675aa0f05914a004f49e2fed9aeeeeband cast("id" as double) = 50003 -- Epic Crategroup by 1,2,3,4,5union allselect "evt_block_time" ,"evt_tx_hash","from","to",cast(id as varchar) as id,-sum(case when value is not null then cast(value as double) else 0 end) as amtfrom(select "evt_block_time","evt_tx_hash","from","to",id,valuefrom erc1155_polygon.evt_TransferBatchcross join unnest("ids","values") as tbl(id,value)where contract_address=0x0B5cfed5efB6f831468B8b5b5321B71825a2AEe0and evt_block_time >= cast('2022-12-08' as timestamp) --contract creation dateand "operator" =0x992f29838675aa0f05914a004f49e2fed9aeeeeband "to" = 0x0000000000000000000000000000000000000000) swhere cast("id" as double) = 50003 -- Epic Crategroup by 1,2,3,4,5)tgroup by 1,2,3,4,5),tx_list as(Select * from loot_mintunion allselect * from crate_burn),