Query editor
WITH first_received AS (SELECT"to" as holder,MIN(DATE_TRUNC('day', evt_block_time)) as first_receive_dateFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xc11158c5da9db1d553ed28f0c2ba1cbedd42cfcbAND "to" != 0x0000000000000000000000000000000000000000GROUP BY "to"),holder_balances AS (SELECTholder,SUM(CASE WHEN transfer_type = 'receive' THEN amount ELSE -amount END) as current_balanceFROM (SELECT"to" as holder,value as amount,'receive' as transfer_typeFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xc11158c5da9db1d553ed28f0c2ba1cbedd42cfcbAND "to" != 0x0000000000000000000000000000000000000000UNION ALLSELECT"from" as holder,value as amount,'send' as transfer_typeFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xc11158c5da9db1d553ed28f0c2ba1cbedd42cfcbAND "from" != 0x0000000000000000000000000000000000000000) tGROUP BY holder)SELECTfr.first_receive_date as date,COUNT(*) as new_holdersFROM first_received frJOIN holder_balances hb ON fr.holder = hb.holderWHERE hb.current_balance > 0GROUP BY fr.first_receive_dateORDER BY date DESC;