Query editor
withA as(select "to" as address ,"from" as bridge, call_type,block_time , 0-cast(value as double)/1e18 as eth from ethereum.traces where success = trueunion allselect "from" as address ,"to" as bridge, call_type,block_time , cast(value as double)/1e18 as eth from ethereum.traces where success = true),B as( select address, bridge , sum(eth) as amountfrom Awhere bridge = 0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419AND (LOWER(call_type) NOT IN ('delegatecall', 'callcode', 'staticcall') or call_type is null)group by 1,2)select *, (select sum(amount) from B ) as total_amount , (select count(address) from B ) as total_usersfrom Border by amount desclimit 1000