STRASMORE/EXPLORE 3,293 QUERIES 22Y EQUITIES · 12Y OPTIONS

3,293 answered market questions

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

Mutual Fund Exchange vs Selling and Rebuying
How many calendar days one trading session sits from the nextranking · 2026-11-07 · 4×3Preview: 4 ranked values, largest first. Upcoming US market holidays and early closesseries · 2026-11-07 · 12×6Preview: a 12-point series, ending higher. Average SPY volume per minute over the final half hour of the sessionseries · 2026-11-07 · 30×2Preview: a 16-point series, ending higher.
How many calendar days one trading session sits from the next

How many calendar days one trading session sits from the next

most recentas of ranking 4×3read in context →
How many calendar days one trading session sits from the next — 4 rows by 3 columns, computed from US exchange, SIP and OPRA data.
gap_labelsession_pairsshare_pct
1 calendar day21378
2 calendar days31.1
3 calendar days5018.3
4 calendar days72.6
the exact SQL behind every number
SELECT
    concat(toString(gap_days), ' calendar day', if(gap_days = 1, '', 's')) AS gap_label,
    count()                                        AS session_pairs,
    round(100 * count() / sum(count()) OVER (), 1) AS share_pct
FROM
(
    SELECT arrayJoin(arrayDifference(arraySort(groupArray(session_day)))) AS gap_days
    FROM
    (
        SELECT DISTINCT dateDiff('day', toDate('2000-01-01'), date) AS session_day
        FROM global_markets.stocks_daily_aggs
        WHERE ticker = 'SPY'
          AND date >= today() - 400
          AND date <= today() - 3
    )
)
WHERE gap_days > 0
GROUP BY gap_days
ORDER BY gap_days
$