Query editor
-- =====================================================================-- QUERY 2 — PnL BY ENTRY MARKET CAP BUCKET-- =====================================================================-- Buckets above ~$1M are unreliable for non-launchpad tokens (1B supply assumption).-- To restrict to pump.fun mints only, add: where token like '%pump'selectcasewhen entry_mcap < 10000 then '1. <$10K'when entry_mcap < 50000 then '2. $10K-50K'when entry_mcap < 100000 then '3. $50K-100K'when entry_mcap < 200000 then '4. $100K-200K'when entry_mcap < 1000000 then '5. $200K-1M'when entry_mcap < 10000000 then '6. $1M-10M'else '7. $10M+'end as entry_mcap_bucket,count(*) as positions,round(100.0 * count(*) / sum(count(*)) over (), 2) as pct_of_positions,round(100.0 * count_if(realized_pnl_usd > 0) / count(*), 2) as win_rate_pct,round(100.0 * approx_percentile(roi, 0.5), 2) as median_roi_pct,round(100.0 * sum(realized_pnl_usd) / sum(cost_basis_usd), 2) as aggregate_return_pct,round(approx_percentile(realized_pnl_usd, 0.5), 2) as median_pnl_usd,round(sum(realized_pnl_usd), 0) as total_pnl_usdfrom query_8861306group by 1order by 1