Query editor
WITH base as (selectdistinct project, sum(amount_usd/1000000000) as "Total USD Volume (Billion)"from dex_solana.tradeswhere 1=1and amount_usd > 0and project != 'solfi'group by 1-- order by 2 desc-- limit 1), finall as (selectcast((RANK() OVER (ORDER BY "Total USD Volume (Billion)" DESC)) as varchar) AS Rank, project as "Project", "Total USD Volume (Billion)"from base)selectcase when Rank = '1' then '🥇'when Rank = '2' then '🥈'when Rank = '3' then '🥉'else Rank end as Rank, "Project", "Total USD Volume (Billion)"from finallorder by 3 DESC