Query editor
with contract_list (address, name) as (values(0xb136707642a4ea12fb4bae820f03d2562ebff487, 'The DAO'),(0xc22fae86443aeed038a4ed887bba8f5035fd12f0, 'Proxy (ssv)')),eth_transfer_raw as (select "from" as address, (-1) * cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhere call_type = 'call'and success = trueand value > uint256 '0'and "from" is not nulland "to" is not nullunion allselect "to" as address, cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhere call_type = 'call'and success = trueand value > uint256 '0'and "from" is not nulland "to" is not nullunion allselect "from" as address, (-1) * cast(gas_price as double) * gas_used as amountfrom ethereum.transactionswhere success = true),eth_balance as (select address,sum(amount) as balance_amountfrom eth_transfer_rawwhere address is not null -- exclude the null address dataand address not in (select address from contract_list)group by 1order by 2 desclimit 200000)select row_number() over (order by balance_amount desc) as rank_id,'<a href=?wallet_address_tdd806=' || cast(address as varchar) || ' target=_blank>Details</a>' as detail_link,'<a href=https://etherscan.io/address/' || cast(address as varchar) || ' target=_blank>EtherScan</a>' as etherscan_link,'<a href=https://dune.com/labels/ethereum/' || cast(address as varchar) || ' target=_blank>Label</a>' as label_link,balance_amount / 1e18 as balance_amount,addressfrom eth_balanceorder by balance_amount desclimit 200000