Query editor
-- pons: launch-cohort survival, share of tokens still trading in the trailing 7 days-- launches CTE identical to sql/pons_a_launches_daily.sql and sql/pons_c_top_coins.sql (task-- constraint: reused verbatim).-- Best-effort methodology note: "still_trading" here means the token had any dex.trades activity in-- the 7 days ending at query run time, not necessarily the 7 days immediately after its own launch-- date; a cohort launched last week and a cohort launched three months ago are both measured against-- the same trailing window, not an age-matched window. This is a best-effort survival read, flagged-- rather than attempted as a per-cohort rolling window, which would need a materially more expensive-- correlated subquery per cohort.-- 2026-08-05 fix (audit M5): the caveat above was disclosed only in the methodology panel, not in-- the table itself, so a young cohort's flattered survival rate (a ~1-day-old cohort's "traded in-- the last 7 days" is close to tautological) had no visible signal on the row it applies to.-- cohort_age_days now travels with every row so the caveat is checkable per cohort without leaving-- the table.with launches as (select address as token, block_time as launched_atfrom robinhood.creation_traceswhere "from" in (0xA5aAb3F0c6EeadF30Ef1D3Eb997108E976351feB, 0x7E1EAbd52Ae29598e6483F72dCf1a70b14284dB8)),cohorts as (select token, date_trunc('week', launched_at) as cohort_weekfrom launches),recent_traders as (select distinct tokenfrom (select token_bought_address as tokenfrom dex.tradeswhere blockchain = 'robinhood' and block_time > now() - interval '7' dayunion allselect token_sold_address as tokenfrom dex.tradeswhere blockchain = 'robinhood' and block_time > now() - interval '7' day) x)selectc.cohort_week,date_diff('day', c.cohort_week, date_trunc('day', now())) as cohort_age_days,count(*) as launched,count(*) filter (where r.token is not null) as still_trading,cast(count(*) filter (where r.token is not null) as double) / nullif(count(*), 0) as survival_ratefrom cohorts cleft join recent_traders r on r.token = c.tokengroup by 1order by 1