Query editor
-- box volumeWITH box_volumes as (select meta,sum(amount)/1e18 as vol,sum(case when isBuy then box_cnt else -1*(box_cnt/1.0) end ) as totalSupplyfrom (select * from box_v2_zksync.Box_evt_Tradeunion select * from box_zksync.Box_evt_Tradeunion select * from box_zksync.BoxV3_evt_Trade)agroup by meta),box_hodlers as ( select meta, senderfrom (select * from box_v2_zksync.Box_evt_Tradeunion select * from box_zksync.Box_evt_Tradeunion select * from box_zksync.BoxV3_evt_Trade)agroup by meta,senderhaving sum(case when isBuy then box_cnt else -1*(box_cnt/1.0) end )>0)select meta,vol,totalSupply, (select count(1) from box_hodlers b where b.meta = a.meta) as holdersfrom box_volumes aorder by vol desc