select borrower, sum(liquidated_amount_usd) as liquidated_amount_usd from
(select * from aave.liquidations
where liquidated_amount_usd > 0
and block_timestamp > getdate() - interval'365 days'
order by liquidated_amount_usd desc
limit 10)
group by borrower
order by liquidated_amount_usd desc