Query editor
WITH withdrawals AS (SELECTsymbol,SUM(ABS(amount_usd)) AS withdrawn_usdFROM lending.supplyWHERE project = 'aave'AND transaction_type = 'withdraw'AND block_time >= TIMESTAMP '2026-04-18 17:35'AND block_time < TIMESTAMP '2026-04-21 17:35'AND block_month >= DATE '2026-04-01'AND amount_usd IS NOT NULLAND symbol IS NOT NULLGROUP BY 1),top_30 AS (SELECT *FROM withdrawalsORDER BY withdrawn_usd DESCLIMIT 30),total AS (SELECT SUM(withdrawn_usd) AS total_withdrawn_usdFROM top_30)SELECTt.symbol,t.withdrawn_usd,t.withdrawn_usd / total.total_withdrawn_usd AS share_of_totalFROM top_30 tCROSS JOIN totalORDER BY t.withdrawn_usd DESC;