select * from (select symbol as collateral, sum(amount_usd) as col_value --date_trunc('month',block_timestamp) as month, symbol as collateral, sum(amount) --event_name
from ethereum.udm_events
where to_address='0x6b175474e89094c44da98b954eedeac495271d0f' and symbol!='DAI' and origin_function_name is not null
group by 1 order by 2 desc
)
where col_value is not null
--group by 1,2 order by 1
limit 100