Query editor
-- Post-bridge activation and retention using public Dune tables only.-- Activation: first successful Base transaction initiated within seven days.-- Retention: any successful Base transaction initiated on days 23–30.WITHparams AS (SELECTdate_trunc('month', current_date) - interval '6' month AS cohort_start,date_trunc('month', current_date) AS cohort_end,100.0 AS min_entry_usd),bridge_candidates AS (SELECTf.recipient AS address,f.withdrawal_block_time AS entry_time,f.withdrawal_tx_hash AS entry_tx_hash,f.deposit_chain AS source_chain,f.bridge_name,coalesce(f.amount_usd, f.withdrawal_amount) AS entry_usd,row_number() OVER (PARTITION BY f.recipientORDER BY f.withdrawal_block_time, f.withdrawal_tx_hash) AS observed_entry_rankFROM bridges_evms.flows AS fCROSS JOIN params AS pWHERE f.withdrawal_chain = 'base'AND f.deposit_chain <> f.withdrawal_chainAND f.withdrawal_token_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913AND coalesce(f.duplicate_index, 1) = 1AND f.withdrawal_block_time >= p.cohort_start - interval '60' dayAND f.withdrawal_block_time < p.cohort_endAND coalesce(f.amount_usd, f.withdrawal_amount) >= p.min_entry_usd),cohort AS (SELECTb.address,b.entry_time,date_trunc('month', b.entry_time) AS cohort_month,b.entry_tx_hash,b.source_chain,b.bridge_name,b.entry_usd,CASEWHEN b.entry_usd < 1000 THEN '$100–1k'WHEN b.entry_usd < 10000 THEN '$1k–10k'WHEN b.entry_usd < 100000 THEN '$10k–100k'ELSE '$100k+'END AS entry_size_bucketFROM bridge_candidates AS bCROSS JOIN params AS pWHERE b.observed_entry_rank = 1AND b.entry_time >= p.cohort_start),outbound_activity AS (SELECTc.address,c.entry_time,tx.block_time AS action_time,tx.hash AS action_tx_hash,tx."to" AS action_to,