with a as (select symbol_in, sum(amount_in_usd) as Amount_usd
from optimism.velodrome.ez_swaps
group by 1
-- having symbol_in and amount_usd is not NULL
order by Amount_usd DESC)
select * from a
where symbol_in is not NULL
and amount_usd is not null
order by amount_usd desc
limit 5