{"slug":"what-stocks-are-in-the-dax","qid":"cap_illustration","label":"cap_illustration","post_title":"what-stocks-are-in-the-dax","post_url":"/blog/what-stocks-are-in-the-dax#q-cap_illustration","columns":["symbol","as_of_label","weight_pct","over_cap_pct"],"rows":[{"symbol":"NVDA","as_of_label":"Sep 25, 2026","weight_pct":28.27,"over_cap_pct":13.27},{"symbol":"AAPL","as_of_label":"Sep 25, 2026","weight_pct":25.9,"over_cap_pct":10.9},{"symbol":"MSFT","as_of_label":"Sep 25, 2026","weight_pct":19.94,"over_cap_pct":4.94},{"symbol":"AMZN","as_of_label":"Sep 25, 2026","weight_pct":14.01,"over_cap_pct":0},{"symbol":"JPM","as_of_label":"Sep 25, 2026","weight_pct":4.74,"over_cap_pct":0},{"symbol":"JNJ","as_of_label":"Sep 25, 2026","weight_pct":3.4,"over_cap_pct":0},{"symbol":"KO","as_of_label":"Sep 25, 2026","weight_pct":1.97,"over_cap_pct":0},{"symbol":"PG","as_of_label":"Sep 25, 2026","weight_pct":1.77,"over_cap_pct":0}],"shape":"ranking","sql":"WITH latest AS\n(\n    SELECT\n        ticker,\n        argMax(toFloat64(market_cap), date) AS mcap,\n        max(date)                           AS as_of\n    FROM global_markets.stocks_ratios\n    WHERE ticker IN ('AAPL', 'MSFT', 'NVDA', 'AMZN', 'JPM', 'JNJ', 'PG', 'KO')\n      AND date >= today() - 400\n      AND market_cap > 0\n    GROUP BY ticker\n),\nbasket AS\n(\n    SELECT sum(mcap) AS total\n    FROM latest\n)\nSELECT\n    l.ticker                                           AS symbol,\n    formatDateTime(l.as_of, '%b %e, %Y')               AS as_of_label,\n    round(100 * l.mcap / b.total, 2)                   AS weight_pct,\n    round(greatest(100 * l.mcap / b.total - 15, 0), 2) AS over_cap_pct\nFROM latest AS l\nCROSS JOIN basket AS b\nORDER BY weight_pct DESC","computed_at":"2026-09-26T15:28:26.484645+00:00","elapsed":0.526261188}