Query editor
WITH params AS (SELECTCURRENT_TIMESTAMP - INTERVAL '365' DAY AS since_365d),/* 1) Pump.fun mints */mints AS (SELECTe.evt_tx_signer AS developer,e.mint AS token_mint,e.evt_block_time AS mint_timeFROM pumpdotfun_solana.pump_evt_createevent eCROSS JOIN params pWHERE e.evt_block_time >= p.since_365d),/* 2) Pump.fun buys */pump_buys AS (SELECTt.token_bought_mint_address AS token_mint,t.block_time AS buy_timeFROM dex_solana.trades tCROSS JOIN params pWHERE t.block_time >= p.since_365dAND t.project = 'pumpdotfun'AND t.token_bought_amount > 0),/* 3) First buy ≥ 30 days after mint */first_buy_after_30d AS (SELECTm.developer,m.token_mint,m.mint_time,MIN(b.buy_time) AS first_buy_timeFROM mints mJOIN pump_buys bON b.token_mint = m.token_mintAND b.buy_time >= m.mint_time + INTERVAL '30' DAYGROUP BYm.developer,m.token_mint,m.mint_time)SELECTdeveloper,token_mint,mint_time,first_buy_time,DATE_DIFF('day', mint_time, first_buy_time) AS days_since_mintFROM first_buy_after_30dORDER BY days_since_mint DESC;