STRASMORE/EXPLORE 2,830 QUERIES

shares_by_year

Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-09-30, from aapl-market-cap-and-share-count.

as of ranking 5×3read in context →
shares_by_year — 5 rows by 3 columns, computed from US exchange, SIP and OPRA data.
report_yearbasic_shares_bndiluted_shares_bn
202116.39216.519
202215.89315.956
202315.5115.577
202415.08215.151
202514.74814.81
Rows × columns
5 × 3
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for shares_by_year, derived from the stored result.
ColumnTypeRangeNotes
report_year text 5 distinct values (2021, 2022, 2023…)
basic_shares_bn number 14.748 to 16.392 count
diluted_shares_bn number 14.81 to 16.519 count

Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.

Run it yourself

This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.

SELECT
    toString(toYear(period_end))                                                             AS report_year,
    round(argMax(toFloat64(basic_shares_outstanding),   (period_end, filing_date)) / 1e9, 3) AS basic_shares_bn,
    round(argMax(toFloat64(diluted_shares_outstanding), (period_end, filing_date)) / 1e9, 3) AS diluted_shares_bn
FROM global_markets.stocks_income_statements
WHERE has(tickers, 'AAPL')
  AND period_end >= '2021-01-01'
  AND basic_shares_outstanding   > 0
  AND diluted_shares_outstanding > 0
GROUP BY report_year
ORDER BY report_year
⌘/Ctrl + Enter

اس ڈیٹا کے ساتھ اپنے AI اسسٹنٹ میں کام کریں

اس صفحے کے ڈیٹا کے ساتھ، کوئری کے لیے تیار کھلتا ہے۔ مفت، بغیر اکاؤنٹ۔