{"slug":"is-the-sp-500-sharia-compliant","qid":"annual","label":"annual","post_title":"is-the-sp-500-sharia-compliant","post_url":"/blog/lang/ar/is-the-sp-500-sharia-compliant#q-annual","columns":["year","spy_pct","spus_pct","hlal_pct","spus_minus_spy_pct"],"rows":[{"year":"2020","spy_pct":15.1,"spus_pct":22.5,"hlal_pct":22.1,"spus_minus_spy_pct":7.4},{"year":"2021","spy_pct":28.8,"spus_pct":36.2,"hlal_pct":28.9,"spus_minus_spy_pct":7.4},{"year":"2022","spy_pct":-19.9,"spus_pct":-24,"hlal_pct":-19.3,"spus_minus_spy_pct":-4},{"year":"2023","spy_pct":24.8,"spus_pct":34.2,"hlal_pct":30.6,"spus_minus_spy_pct":9.4},{"year":"2024","spy_pct":24,"spus_pct":26.9,"hlal_pct":17.3,"spus_minus_spy_pct":2.9},{"year":"2025","spy_pct":16.6,"spus_pct":19.1,"hlal_pct":18.5,"spus_minus_spy_pct":2.5},{"year":"2026","spy_pct":12.9,"spus_pct":17.2,"hlal_pct":21.4,"spus_minus_spy_pct":4.3}],"shape":"table","sql":"WITH yearly AS\n(\n    SELECT\n        toYear(date)                   AS y,\n        ticker,\n        argMin(toFloat64(close), date) AS first_close,\n        argMax(toFloat64(close), date) AS last_close\n    FROM global_markets.stocks_daily_aggs\n    WHERE ticker IN ('SPY', 'SPUS', 'HLAL')\n      AND date >= '2020-01-01'\n    GROUP BY y, ticker\n)\nSELECT\n    toString(y) AS year,\n    round(100 * (maxIf(last_close, ticker = 'SPY')  / maxIf(first_close, ticker = 'SPY')  - 1), 1) AS spy_pct,\n    round(100 * (maxIf(last_close, ticker = 'SPUS') / maxIf(first_close, ticker = 'SPUS') - 1), 1) AS spus_pct,\n    round(100 * (maxIf(last_close, ticker = 'HLAL') / maxIf(first_close, ticker = 'HLAL') - 1), 1) AS hlal_pct,\n    round(100 * (maxIf(last_close, ticker = 'SPUS') / maxIf(first_close, ticker = 'SPUS')\n               - maxIf(last_close, ticker = 'SPY')  / maxIf(first_close, ticker = 'SPY')), 1)      AS spus_minus_spy_pct\nFROM yearly\nGROUP BY y\nORDER BY y","computed_at":"2026-09-26T15:23:38.016132+00:00","elapsed":0.003863629}