Query editor
SELECTsymbol,COUNT(*) AS liquidation_events,CAST(SUM(ABS(amount_usd)) AS BIGINT) AS total_liquidated_usd,ROUND(100.0 * SUM(ABS(amount_usd)) / SUM(SUM(ABS(amount_usd))) OVER (), 2) AS pct_of_total_volume,COUNT(DISTINCT borrower) AS unique_wallets_liquidated,ROUND(AVG(ABS(amount_usd)), 2) AS avg_liquidation_size_usdFROM lending.borrowWHERE blockchain = 'ethereum'AND project = 'aave'AND version = '3'AND transaction_type = 'borrow_liquidation'AND block_month >= DATE '2024-01-01'GROUP BY symbolORDER BY total_liquidated_usd DESCLIMIT 15