SPY and QQQ ranked against the trailing month of sessions (rank 1 = biggest absolute move)
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-07-26, from Market Recap: July 2, 2026, The Day in Numbers.
spy open to close pct
-0.35
spy abs move rank
15
spy sessions compared
22
qqq close over close pct
-1.71
qqq abs move rank
9
qqq sessions compared
21
first session
2026-06-02
- Rows × columns
- 1 × 7
- Period covered
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
spy_open_to_close_pct |
number | every row is -0.35 | percent |
spy_abs_move_rank |
number | every row is 15 | |
spy_sessions_compared |
number | every row is 22 | |
qqq_close_over_close_pct |
number | every row is -1.71 | percent |
qqq_abs_move_rank |
number | every row is 9 | |
qqq_sessions_compared |
number | every row is 21 | |
first_session |
date | 2026-06-02 |
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.
the exact SQL behind every number
WITH per_day AS (
SELECT ticker,
toDate(toTimeZone(window_start, 'America/New_York')) AS d,
(argMax(toFloat64(close), window_start) / argMin(toFloat64(open), window_start) - 1) * 100 AS oc_pct,
argMax(toFloat64(close), window_start) AS rth_close
FROM global_markets.delayed_stocks_minute_aggs
WHERE ticker IN ('SPY', 'QQQ')
AND window_start >= toDateTime('2026-06-02 00:00:00')
AND window_start < toDateTime('2026-07-03 00:00:00')
AND (toHour(window_start) * 60 + toMinute(window_start)) BETWEEN 810 AND 1199
GROUP BY ticker, d
),
with_prev AS (
SELECT ticker, d, oc_pct,
lagInFrame(rth_close) OVER (PARTITION BY ticker ORDER BY d) AS prev_close,
(rth_close / lagInFrame(rth_close) OVER (PARTITION BY ticker ORDER BY d) - 1) * 100 AS cc_pct
FROM per_day
)
SELECT
round(anyIf(oc_pct, ticker = 'SPY' AND d = toDate('2026-07-02')), 2) AS spy_open_to_close_pct,
arrayCount(x -> x > abs(anyIf(oc_pct, ticker = 'SPY' AND d = toDate('2026-07-02'))),
groupArrayIf(abs(oc_pct), ticker = 'SPY' AND d != toDate('2026-07-02'))) + 1 AS spy_abs_move_rank,
countIf(ticker = 'SPY') AS spy_sessions_compared,
round(anyIf(cc_pct, ticker = 'QQQ' AND d = toDate('2026-07-02')), 2) AS qqq_close_over_close_pct,
arrayCount(x -> x > abs(anyIf(cc_pct, ticker = 'QQQ' AND d = toDate('2026-07-02'))),
groupArrayIf(abs(cc_pct), ticker = 'QQQ' AND d != toDate('2026-07-02') AND isFinite(cc_pct) AND prev_close > 0)) + 1 AS qqq_abs_move_rank,
countIf(ticker = 'QQQ' AND isFinite(cc_pct) AND prev_close > 0) AS qqq_sessions_compared,
toString(minIf(d, ticker = 'SPY')) AS first_session
FROM with_prev
Run your own version of this
The same 22 years of US equities and 12 years of options data are queryable in SQL or plain English. A free account runs 100 queries a day and takes no card.
More from this analysisMarket Recap: July 2, 2026, The Day in Numbers
Session check: SPY's observed minute-bar span, and the July 3 closure on the tape
scalar 1×6
→
One row for the whole options day: volume, same-day expiry, the holiday-shifted week, and the July monthly
scalar 1×19
→
After the holiday: the next session, its ex-dividends and splits, the next scheduled closure, and the short-interest lag
scalar 1×9
→
The receipt: the July 2 treasury print is on file
scalar 1×2
→
Was liquidity unusual? SPY's regular-hours median spread vs the trailing month of sessions
scalar 1×6
→
Stocks NBBO update count: July 2 vs July 1, with named-ticker updates (millions)
scalar 1×6
→
See all 2,170 queries →