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 = 0x514910771af9ca656af840dff83e8264ecf986caUNION ALLSELECTevt_tx_hash AS tx_hash,tr."to" AS address,tr.value AS amount,contract_addressFROMerc20_ethereum.evt_Transfer AS trWHEREcontract_address = 0x514910771af9ca656af840dff83e8264ecf986ca),transferAmounts AS (SELECTaddress,SUM(amount) / CAST(1e18 AS DOUBLE) AS poolholdingsFROMtransfersGROUP BY1ORDER BY2 DESC)SELECTCOUNT(DISTINCT (address)) AS holdersFROMtransferAmountsWHEREpoolholdings > 0