Query editor
-- with tokens as (-- SELECT-- distinct token_address,-- symbol-- FROM-- compound_v2_ethereum.supply-- ),-- price as (-- SELECT-- date_trunc('day', minute) as dt,-- avg(price) as price-- FROM-- prices.usd-- WHERE-- blockchain = ethereum-- and contract_address in (SELECT token_address FROM tokens)-- )blockchainwith deposit as (SELECTdepositor,sum(usd_amount) as amtFROMcompound_v2_ethereum.supplyWHEREevt_block_time>= date('2023-01-01')group by 1unionSELECTdepositor,sum(amount_usd) as amtFROMcompound_ethereum.supplyWHEREblock_time>= date('2023-01-01')group by 1),labels as (select distinct address,name from labels.allwhere blockchain = 'ethereum'and category in ('contract','social','institution','hackers','infrastructure','dao','ofac_sanction','bridge','dao','project wallet','hackers','Rollup','infrastructure')and (label_type = 'identifier' or (label_type = 'persona' and model_name = 'dao_framework'))union allselect * from query_2640605)SELECTd.depositor, l.name, d.amtFROMdeposit dleft join labels l on l.address = d.depositorwhere amt>=5000000order by 3 desc