Query editor
-- Robinhood Perps: new vs returning depositors.---- COMPLETE UTC DAYS ONLY. `block_date < current_date` drops the day in progress;-- a partial final bar reads as a collapse in acquisition that has not happened.-- Excluding it does not disturb first-seen for earlier days: a deposit made today-- can only set first_date = today, which is filtered out anyway.WITH d AS (SELECT block_date, "from" AS depositorFROM tokens.transfersWHERE blockchain = 'robinhood'AND block_month >= DATE '2026-06-01'AND block_date < current_dateAND contract_address = 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168AND "to" = 0x94bAB9693Ba2f6358507eFfcbd372b0660AFfF9d),daily AS (SELECT DISTINCT block_date, depositor FROM d),first_seen AS (SELECT depositor, min(block_date) AS first_date FROM d GROUP BY 1)SELECTa.block_date,count(*) FILTER (WHERE f.first_date = a.block_date) AS new_depositors,count(*) FILTER (WHERE f.first_date < a.block_date) AS returning_depositors,sum(count(*) FILTER (WHERE f.first_date = a.block_date))OVER (ORDER BY a.block_date) AS cumulative_depositorsFROM daily aJOIN first_seen f ON f.depositor = a.depositorGROUP BY 1ORDER BY 1