Query editor
WITH us_participants AS (SELECTparticipant,allocation_xpl,sale_funded_usd,unlock_dateFROM "query_8094637"WHERE inferred_category = 'US'), ranked AS (SELECTrow_number() OVER (ORDER BY allocation_xpl DESC, participant) AS rank,participant,allocation_xpl,sale_funded_usd,100 * allocation_xpl / SUM(allocation_xpl) OVER () AS us_cohort_share_pct,100 * SUM(allocation_xpl) OVER (ORDER BY allocation_xpl DESC, participantROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) / SUM(allocation_xpl) OVER () AS cumulative_us_share_pct,unlock_dateFROM us_participants)SELECT *FROM rankedWHERE rank <= 25ORDER BY rank