Query editor
-- Do launches survive their first day and their first week?---- "Alive at day N" means the coin saw at least one trade in the 24h window that opens N days after-- its launch — not "has ever traded since", which every coin passes on launch-day noise alone.---- Each cohort only counts launches old enough to have HAD that window: a coin launched this morning-- cannot fail a 7-day test, and including it would report a survival collapse that is really just-- the newest cohort being young.WITH l AS (SELECT token, token_symbol, block_time AS launched_at FROM query_8623428),t AS (SELECT token, block_time FROM query_8623444),alive AS (SELECTl.token,max(CASE WHEN t.block_time >= l.launched_at + INTERVAL '1' DAYAND t.block_time < l.launched_at + INTERVAL '2' DAY THEN 1 ELSE 0 END) AS d1,max(CASE WHEN t.block_time >= l.launched_at + INTERVAL '7' DAYAND t.block_time < l.launched_at + INTERVAL '8' DAY THEN 1 ELSE 0 END) AS d7,l.launched_atFROM lLEFT JOIN t ON t.token = l.tokenGROUP BY l.token, l.launched_at)SELECT'Alive after 24h' AS horizon,count(*) AS cohort,sum(d1) AS survived,round(100.0 * sum(d1) / nullif(count(*), 0), 1) AS pctFROM aliveWHERE launched_at < now() - INTERVAL '2' DAYUNION ALLSELECT'Alive after 7d',count(*),sum(d7),round(100.0 * sum(d7) / nullif(count(*), 0), 1)FROM aliveWHERE launched_at < now() - INTERVAL '8' DAY