Query editor
withholdings as (selectdistinct address,holding,0xED1273928bA97EEd7B49e82C2F39D512D7591112 as token_addressfrom(selectsum(total) as holding,addressfrom(selectsum(cast(value as double)/1e18) as total,to as addressfrom erc20_ethereum.evt_Transferwhere contract_address = 0xED1273928bA97EEd7B49e82C2F39D512D7591112group by 2union allselect-sum(cast(value as double)/1e18) as total,"from" as addressfrom erc20_ethereum.evt_Transferwhere contract_address = 0xED1273928bA97EEd7B49e82C2F39D512D7591112group by 2) tgroup by address) twhere holding >= 0.0001),-- dca_price as (-- select-- from-- )compiled as (selectrow_number() over (order by a.holding desc) as Ranking,a.holding as Amount_Held,a.address as Addressfrom holdings a)selectCOUNT(Address) as number_of_holder,sum(Amount_Held)/COUNT(Address) as meanfrom compiled