Query editor
-- Revenue concentration / Pareto curve for PoolFans+UniClaw launches.-- Uses indexed cumulative WETH rewards from the inline launch dataset.WITH ranked AS (SELECTtoken_name,token_symbol,token_address,created_at,cumulative_weth_rewards,row_number() OVER (ORDER BY cumulative_weth_rewards DESC, created_at ASC) AS reward_rank,sum(cumulative_weth_rewards) OVER () AS total_weth_rewards,count(*) OVER () AS total_launchesFROM query_7506355), curve AS (SELECTreward_rank,token_name,token_symbol,token_address,created_at,cumulative_weth_rewards,sum(cumulative_weth_rewards) OVER (ORDER BY reward_rank) AS cumulative_weth_rewards_to_rank,total_weth_rewards,total_launchesFROM ranked)SELECTreward_rank,token_symbol,token_name,token_address,created_at,cumulative_weth_rewards,cumulative_weth_rewards_to_rank,CASE WHEN total_weth_rewards > 0 THEN cumulative_weth_rewards_to_rank / total_weth_rewards END AS cumulative_reward_share,CASE WHEN total_launches > 0 THEN cast(reward_rank AS double) / total_launches END AS launch_count_share,total_weth_rewardsFROM curveWHERE reward_rank <= 100ORDER BY reward_rank;