Query editor
WITHtransfers AS (SELECTevt_tx_hash AS tx_hash,tr."from" AS address,- tr.value AS amount,contract_addressFROMerc20_ethereum.evt_Transfer AS trWHEREcontract_address = 0x88acdd2a6425c3faae4bc9650fd7e27e0bebb7abUNION ALLSELECTevt_tx_hash AS tx_hash,tr."to" AS address,tr.value AS amount,contract_addressFROMerc20_ethereum.evt_Transfer AS trWHEREcontract_address = 0x88acdd2a6425c3faae4bc9650fd7e27e0bebb7ab),transferAmounts AS (SELECTaddress,SUM(amount) / CAST(1e18 AS DOUBLE) AS poolholdingsFROMtransfersWHERE"address" <> 0xF3e48a2b1b9808f66321FB1Eb385C86d2486dd6A /* multisig */AND "address" <> 0x6b1c477b4c67958915b194ae8b007bf078dadb81 /* UniV3 */AND "address" <> 0x04108d6E9a51BeC5170F8Fd953a156cF754bA541 /* RewardPool */AND "address" <> 0xc73A92c92056Fc1B17f37D4297AF53CD68Ae2B79 /* RewardPool v1.5 */AND "address" <> 0x6F195F3190C3E5479f5A55936bFC5bED522Ef80B /* Crucible */AND "address" <> 0x1c428A75181Bc25509aF3A5B7FAEE97b4B6d3562 /* Token Manager */AND "address" <> 0xCD6bcca48069f8588780dFA274960F15685aEe0e /* Uni V2 */GROUP BY1ORDER BY2 DESC)SELECTCASEWHEN poolholdings < 11 THEN '10 and below'WHEN poolholdings < 101AND poolholdings >= 11 THEN '11 to 100'WHEN poolholdings < 1001AND poolholdings >= 101 THEN '101 to 1,000'WHEN poolholdings < 5001AND poolholdings >= 1001 THEN '1001 to 5,000'ELSE '> 5,000'END AS category,COUNT(address) AS address_countFROMtransferAmountsWHEREpoolholdings > 0GROUP BYCASEWHEN poolholdings < 11 THEN '10 and below'