STRASMORE/EXPLORE 2,173 QUERIES 22Y EQUITIES · 12Y OPTIONS

2,173 answered market questions

every one with its exact SQL, its result and the date it was computed · free, no signup

Cost Basis Methods: FIFO vs Specific ID
Cheapest to dearest monthly lot in 2024, five household tickersranking · 2026-08-09 · 5×3Preview: 5 ranked values, largest first. Twelve monthly AAPL lots, first regular session of each month of 2024series · 2026-08-09 · 12×3Preview: a 12-point series, ending higher. Realized gain per share on each 2024 lot, sold at the same June 2025 priceseries · 2026-08-09 · 12×3Preview: a 12-point series, ending lower.
Cheapest to dearest monthly lot in 2024, five household tickers

Cheapest to dearest monthly lot in 2024, five household tickers

most recentas of ranking 5×3read in context →
Cheapest to dearest monthly lot in 2024, five household tickers — 5 rows by 3 columns, computed from US exchange, SIP and OPRA data.
symbollot_price_bandspread_pct
AAPL$169.3 to $239.5941.5
SPY$472.65 to $603.6327.7
MSFT$370.87 to $456.7323.2
KO$59.53 to $73.0122.6
JNJ$146.44 to $167.1614.1
the exact SQL behind every number
SELECT
    ticker AS symbol,
    concat('$', toString(round(min(lot_price), 2)),
           ' to $', toString(round(max(lot_price), 2)))  AS lot_price_band,
    round(100 * (max(lot_price) / min(lot_price) - 1), 1) AS spread_pct
FROM
(
    SELECT
        ticker,
        toStartOfMonth(date)           AS month,
        toFloat64(argMin(close, date)) AS lot_price
    FROM global_markets.stocks_daily_aggs
    WHERE ticker IN ('AAPL', 'MSFT', 'SPY', 'KO', 'JNJ')
      AND date >= '2024-01-01'
      AND date <  '2025-01-01'
    GROUP BY ticker, month
)
GROUP BY ticker
ORDER BY spread_pct DESC
$