STRASMORE/EXPLORE 2,170 QUERIES

The eleven S&P 500 sectors over the past week

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-08-25, from Weekly Market Recap: The Week in Numbers.

as of ranking 11×2read in context →
The eleven S&P 500 sectors over the past week — 11 rows by 2 columns, computed from US exchange, SIP and OPRA data.
sectorweek_return_pct
Health Care3.55
Materials2.39
Staples1.96
Communications1.46
Consumer Disc.1.45
Financials1.01
Real Estate0.27
Energy-0.45
Utilities-2.85
Industrials-3.26
Technology-3.43
Rows × columns
11 × 2
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 The eleven S&P 500 sectors over the past week, derived from the stored result.
ColumnTypeRangeNotes
sector text 11 distinct values (Communications, Consumer Disc., Energy…)
week_return_pct number -3.43 to 3.55 percent

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 sess AS (
    SELECT ticker, toDate(toTimeZone(window_start, 'America/New_York')) AS d,
        argMin(toFloat64(open), toTimeZone(window_start, 'America/New_York')) AS o,
        argMax(toFloat64(close), toTimeZone(window_start, 'America/New_York')) AS c
    FROM global_markets.delayed_stocks_minute_aggs
    WHERE ticker IN ('XLB', 'XLC', 'XLE', 'XLF', 'XLI', 'XLK', 'XLP', 'XLRE', 'XLU', 'XLV', 'XLY')
      AND window_start >= now() - INTERVAL 12 DAY AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60 + toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959
    GROUP BY ticker, d
),
wk AS (SELECT ticker, argMin(o, d) AS wo, argMax(c, d) AS wc FROM sess WHERE d >= (SELECT max(d) FROM sess) - 6 GROUP BY ticker)
SELECT multiIf(ticker = 'XLK', 'Technology', ticker = 'XLC', 'Communications', ticker = 'XLE', 'Energy',
    ticker = 'XLF', 'Financials', ticker = 'XLI', 'Industrials', ticker = 'XLB', 'Materials',
    ticker = 'XLP', 'Staples', ticker = 'XLRE', 'Real Estate', ticker = 'XLU', 'Utilities',
    ticker = 'XLV', 'Health Care', 'Consumer Disc.') AS sector,
    round((wc / wo - 1) * 100, 2) AS week_return_pct
FROM wk ORDER BY week_return_pct DESC

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 analysisWeekly Market Recap: The Week in Numbers
Where the volume went: most dollars traded over the past week ranking 8×2 Biggest stock losers over the past week ranking 7×3 Biggest stock gainers over the past week ranking 7×3 The major index ETFs over the past week ranking 4×4 Daily market breadth: advancers vs decliners each session (names trading $500M+) series 5×3 Annualized volatility vs total return, 25 large caps, calmest to wildest (~2 years) ranking 25×3 See all 2,170 queries →