Query editor
SELECTMIN(block_time) first_seen,MAX(block_time) last_seen,hacker_address,stolen_to_address,CONCAT(SUBSTR(CAST(stolen_to_address AS VARCHAR), 1, 6), '...', SUBSTR(CAST(stolen_to_address AS VARCHAR), -4)) AS short_stolen_to,ARRAY_JOIN(ARRAY_DISTINCT(ARRAY_AGG(token_symbol)), ', ') AS stolen_tokens,COUNT(DISTINCT hash) AS total_drain_txs,COUNT(DISTINCT victim_address) AS num_of_unique_victims,ROUND(SUM(COALESCE(stolen_usd_amount, 0)), 2) AS total_stolen_usdFROM query_8664926GROUP BY 3, 4ORDER BY total_stolen_usd DESC;