Query editor
WITH price as (selectdate_trunc('hour', minute) as date,avg(price) AS price_usdfrom prices.usdwhere 1=1and contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2and blockchain = 'ethereum'and minute >= timestamp '2023-08-01'group by 1)select * from (selecttrader,inf2.twitterusername as trader_twitter,row_number() over(order by sum(ethamount/power(10,18)) filter(where isbuy) desc) as buy_rank,count(*) filter(where isbuy) as buys,sum(ethamount/power(10,18)) filter(where isbuy) as buy_volfrom friendtech_base.FriendtechSharesV1_evt_Trade aLEFT JOIN dune.hildobby.dataset_friendtech_profiles inf2 On inf2.address = a.traderwhere 1=1--and evt_block_time >= now() - interval '24' hourand inf2.twitterusername is not nullgroup by 1,2order by buy_vol desc) where buy_rank <= 25