[
 {
  "id": "N01",
  "text": "What was the gross CAD card purchase amount posted during July 2026, before subtracting refunds? Return amount in cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='purchase' AND status='posted' AND currency='CAD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N02",
  "text": "How much in USD card refunds was posted during July 2026? Return amount as a positive number of cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='refund' AND status='posted' AND currency='USD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N03",
  "text": "What was total net CAD card spend for July 2026, counting purchases and refunds by their posting dates and including uncategorized activity? Return amount in cents, with refunds reducing spend.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(net_spend_minor),0) AS amount FROM card_spend_daily WHERE currency='CAD' AND spend_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31';"
 },
 {
  "id": "N04",
  "text": "How much in CAD cash deposits was posted during July 2026, excluding refunds and transfers? Return amount in cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='deposit' AND status='posted' AND currency='CAD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N05",
  "text": "What was the largest single USD cash withdrawal posted during July 2026? Return amount as a positive number of cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT MAX(amount_minor) AS amount FROM transactions WHERE event_kind='withdrawal' AND status='posted' AND currency='USD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N06",
  "text": "What was the net USD cash inflow from deposits minus withdrawals posted during July 2026? Exclude card activity and transfers. Return amount in cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(CASE WHEN event_kind='deposit' THEN amount_minor ELSE -amount_minor END),0) AS amount FROM transactions WHERE event_kind IN ('deposit','withdrawal') AND status='posted' AND currency='USD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N07",
  "text": "How many distinct CAD transfers were posted during July 2026? Count each transfer once, rather than counting both account entries. Return transfer count.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "transfer_count"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(DISTINCT transfer_group_id) AS transfer_count FROM transactions WHERE event_kind='transfer' AND status='posted' AND currency='CAD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N08",
  "text": "What was the total USD amount moved by transfers posted during July 2026? Count the outgoing side of each transfer once. Return amount as a positive number of cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='transfer' AND direction='debit' AND status='posted' AND currency='USD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N09",
  "text": "Across all CAD accounts, what was the net balance effect of transfers posted during July 2026, with incoming transfers positive and outgoing transfers negative? Return amount in cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(CASE WHEN direction='credit' THEN amount_minor ELSE -amount_minor END),0) AS amount FROM transactions WHERE event_kind='transfer' AND status='posted' AND currency='CAD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N10",
  "text": "What was the combined opening CAD balance at the start of July 1, 2026, including accounts with no activity? Return amount in cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT SUM(opening_minor) AS amount FROM account_daily WHERE currency='CAD' AND balance_date=DATE '2026-07-01';"
 },
 {
  "id": "N11",
  "text": "What was the combined closing USD balance on July 31, 2026, including negative and zero balances? Return amount in cents.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT SUM(closing_minor) AS amount FROM account_daily WHERE currency='USD' AND balance_date=DATE '2026-07-31';"
 },
 {
  "id": "N12",
  "text": "By how much did the combined CAD balance change from the opening of July 1 to the close of July 31, 2026? Return amount in cents, positive for an increase and negative for a decrease.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT SUM(closing_minor-opening_minor) AS amount FROM account_daily WHERE currency='CAD' AND balance_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31';"
 },
 {
  "id": "N13",
  "text": "How many USD card purchases were posted during July 2026, without subtracting refund transactions from the count? Return purchase count.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "purchase_count"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(*) AS purchase_count FROM transactions WHERE event_kind='purchase' AND status='posted' AND currency='USD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N14",
  "text": "How many distinct original purchases received at least one CAD refund posted during July 2026, regardless of when the original purchase occurred? Count a purchase only once if it received multiple refunds. Return purchase count.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "purchase_count"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(DISTINCT related_transaction_id) AS purchase_count FROM transactions WHERE event_kind='refund' AND status='posted' AND currency='CAD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N15",
  "text": "How many accounts had at least one transaction of any kind posted during July 2026, across both currencies? Return account count.",
  "kind": "analytical",
  "tier": 1,
  "columns": [
   "account_count"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(DISTINCT account_id) AS account_count FROM transactions WHERE status='posted' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N16",
  "text": "What was the gross CAD amount of purchases that occurred during July 2026 and have posted status in the supplied data, including any that posted in August? Use the purchase occurrence date to select the month. Return amount in cents.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='purchase' AND status='posted' AND currency='CAD' AND occurred_at >= DATE '2026-07-01' AND occurred_at < DATE '2026-08-01';"
 },
 {
  "id": "N17",
  "text": "Which CAD purchases occurred before July 1, 2026, but posted during July 2026? Return transaction id and amount in cents, sorted by transaction id ascending.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "transaction_id",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT transaction_id, amount_minor AS amount FROM transactions WHERE event_kind='purchase' AND status='posted' AND currency='CAD' AND occurred_at < DATE '2026-07-01' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01' ORDER BY transaction_id;"
 },
 {
  "id": "N18",
  "text": "Which CAD purchases occurred during July 2026 but posted on August 1 or August 2, 2026? Return transaction id, purchase occurrence date, posting date and amount in cents, sorted by transaction id ascending.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "transaction_id",
   "purchase_date",
   "posting_date",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT transaction_id, CAST(occurred_at AS DATE) AS purchase_date, CAST(posted_at AS DATE) AS posting_date, amount_minor AS amount FROM transactions WHERE event_kind='purchase' AND status='posted' AND currency='CAD' AND occurred_at >= DATE '2026-07-01' AND occurred_at < DATE '2026-08-01' AND posted_at >= DATE '2026-08-01' AND posted_at < DATE '2026-08-03' ORDER BY transaction_id;"
 },
 {
  "id": "N19",
  "text": "What is the total CAD amount of purchases that occurred during July 2026 and are marked pending in the supplied data? Return amount in cents.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='purchase' AND status='pending' AND currency='CAD' AND occurred_at >= DATE '2026-07-01' AND occurred_at < DATE '2026-08-01';"
 },
 {
  "id": "N20",
  "text": "How many USD purchases that occurred during July 2026 are marked void in the supplied data? Return purchase count.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "purchase_count"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(*) AS purchase_count FROM transactions WHERE event_kind='purchase' AND status='void' AND currency='USD' AND occurred_at >= DATE '2026-07-01' AND occurred_at < DATE '2026-08-01';"
 },
 {
  "id": "N21",
  "text": "How much net CAD card spend posted during July 2026 had no assigned category? Subtract uncategorized refunds from uncategorized purchases. Return amount in cents.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(net_spend_minor),0) AS amount FROM card_spend_daily WHERE currency='CAD' AND NULLIF(category_id,'') IS NULL AND spend_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31';"
 },
 {
  "id": "N22",
  "text": "How much in CAD refunds posted to card_001_1 from July 1 through July 15, 2026, inclusive? Include multiple refunds against the same purchase. Return amount as a positive number of cents.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='refund' AND status='posted' AND card_id='card_001_1' AND currency='CAD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-07-16';"
 },
 {
  "id": "N23",
  "text": "What was the lowest daily closing CAD balance for acct_001 during July 2026? Return amount in cents.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT MIN(closing_minor) AS amount FROM account_daily WHERE account_id='acct_001' AND currency='CAD' AND balance_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31';"
 },
 {
  "id": "N24",
  "text": "Across USD accounts, how many account-days ended with a negative balance from July 16 through July 31, 2026, inclusive? Count each account separately on each date. Return account-days.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "account_days"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(*) AS account_days FROM account_daily WHERE currency='USD' AND closing_minor<0 AND balance_date BETWEEN DATE '2026-07-16' AND DATE '2026-07-31';"
 },
 {
  "id": "N25",
  "text": "During July 2026, how many CAD account-days had a positive amount of posted credits and no posted debits? Count each account separately on each date. Return account-days.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "account_days"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(*) AS account_days FROM account_daily WHERE currency='CAD' AND posted_credit_minor>0 AND posted_debit_minor=0 AND balance_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31';"
 },
 {
  "id": "N26",
  "text": "For acct_017, what was the net CAD cash inflow from deposits minus withdrawals posted from July 3 through July 20, 2026, inclusive? Exclude transfers and card activity. Return amount in cents.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(CASE WHEN event_kind='deposit' THEN amount_minor ELSE -amount_minor END),0) AS amount FROM transactions WHERE account_id='acct_017' AND currency='CAD' AND status='posted' AND event_kind IN ('deposit','withdrawal') AND posted_at >= DATE '2026-07-03' AND posted_at < DATE '2026-07-21';"
 },
 {
  "id": "N27",
  "text": "How many individual CAD purchases of at least 10,000 cents posted during July 2026? Apply the threshold to the original purchase amount before refunds. Return purchase count.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "purchase_count"
  ],
  "ordered": false,
  "gold_sql": "SELECT COUNT(*) AS purchase_count FROM transactions WHERE event_kind='purchase' AND status='posted' AND currency='CAD' AND amount_minor>=10000 AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N28",
  "text": "On what date did the first USD card refund post during July 2026? Return posting date.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "posting_date"
  ],
  "ordered": false,
  "gold_sql": "SELECT MIN(CAST(posted_at AS DATE)) AS posting_date FROM transactions WHERE event_kind='refund' AND status='posted' AND currency='USD' AND posted_at >= DATE '2026-07-01' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N29",
  "text": "How many CAD card purchases posted on July 9, 2026, across all cards and categories, including uncategorized purchases? Return purchase count.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "purchase_count"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(purchase_count),0) AS purchase_count FROM card_spend_daily WHERE currency='CAD' AND spend_date=DATE '2026-07-09';"
 },
 {
  "id": "N30",
  "text": "How much in CAD cash withdrawals posted from July 25 through July 31, 2026, inclusive? Return amount as a positive number of cents, or zero if none posted.",
  "kind": "analytical",
  "tier": 2,
  "columns": [
   "amount"
  ],
  "ordered": false,
  "gold_sql": "SELECT COALESCE(SUM(amount_minor),0) AS amount FROM transactions WHERE event_kind='withdrawal' AND status='posted' AND currency='CAD' AND posted_at >= DATE '2026-07-25' AND posted_at < DATE '2026-08-01';"
 },
 {
  "id": "N31",
  "text": "How did net CAD card spend posted during July 2026 break down by category? Include activity without a category under 'Uncategorized'. Return category name and amount in cents, sorted by amount descending, then category name ascending to break ties.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "category",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT COALESCE(c.category_name,'Uncategorized') AS category, SUM(s.net_spend_minor) AS amount FROM card_spend_daily s LEFT JOIN categories c ON s.category_id=c.category_id WHERE s.currency='CAD' AND s.spend_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31' GROUP BY COALESCE(c.category_name,'Uncategorized') ORDER BY amount DESC, category ASC;"
 },
 {
  "id": "N32",
  "text": "What was each organization's combined closing CAD balance on July 31, 2026? Include every organization with a CAD account, including accounts with no activity. Return organization id and amount in cents, sorted by organization id ascending.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "organization_id",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT a.organization_id, SUM(d.closing_minor) AS amount FROM accounts a JOIN account_daily d ON a.account_id=d.account_id WHERE d.currency='CAD' AND d.balance_date=DATE '2026-07-31' GROUP BY a.organization_id ORDER BY a.organization_id;"
 },
 {
  "id": "N33",
  "text": "Which three cards had the highest net USD spend posted during July 2026, including uncategorized activity and regardless of current card status? Return card id and amount in cents, ranked by amount descending, then card id ascending to break ties.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "card_id",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT card_id, SUM(net_spend_minor) AS amount FROM card_spend_daily WHERE currency='USD' AND spend_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31' GROUP BY card_id ORDER BY amount DESC, card_id ASC LIMIT 3;"
 },
 {
  "id": "N34",
  "text": "Which cards had no purchases posted during July 2026, across either currency? Include cards with no transactions at all. Return card id and its status in the supplied card snapshot, sorted by card id ascending.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "card_id",
   "card_status"
  ],
  "ordered": true,
  "gold_sql": "SELECT c.card_id, c.card_status FROM cards c WHERE NOT EXISTS (SELECT 1 FROM transactions t WHERE t.card_id=c.card_id AND t.event_kind='purchase' AND t.status='posted' AND t.posted_at >= DATE '2026-07-01' AND t.posted_at < DATE '2026-08-01') ORDER BY c.card_id;"
 },
 {
  "id": "N35",
  "text": "For each organization with a CAD account, how much in cash deposits and cash withdrawals posted during July 2026? Exclude transfers and card activity, and show zero for a missing total. Return organization id, deposits in cents and withdrawals in cents, sorted by organization id ascending.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "organization_id",
   "deposits",
   "withdrawals"
  ],
  "ordered": true,
  "gold_sql": "SELECT a.organization_id, COALESCE(SUM(CASE WHEN t.event_kind='deposit' THEN t.amount_minor ELSE 0 END),0) AS deposits, COALESCE(SUM(CASE WHEN t.event_kind='withdrawal' THEN t.amount_minor ELSE 0 END),0) AS withdrawals FROM accounts a LEFT JOIN transactions t ON a.account_id=t.account_id AND t.status='posted' AND t.event_kind IN ('deposit','withdrawal') AND t.currency='CAD' AND t.posted_at >= DATE '2026-07-01' AND t.posted_at < DATE '2026-08-01' WHERE a.currency='CAD' GROUP BY a.organization_id ORDER BY a.organization_id;"
 },
 {
  "id": "N36",
  "text": "List the USD transfers whose outgoing and incoming entries both posted during July 2026, with one row per transfer. Return transfer id, sending account id, receiving account id and amount in cents, sorted by transfer id ascending.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "transfer_id",
   "sender",
   "recipient",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT d.transfer_group_id AS transfer_id, d.account_id AS sender, r.account_id AS recipient, d.amount_minor AS amount FROM transactions d JOIN transactions r ON d.transfer_group_id=r.transfer_group_id AND r.event_kind='transfer' AND r.direction='credit' AND r.status='posted' AND r.currency='USD' AND r.posted_at >= DATE '2026-07-01' AND r.posted_at < DATE '2026-08-01' WHERE d.event_kind='transfer' AND d.direction='debit' AND d.status='posted' AND d.currency='USD' AND d.posted_at >= DATE '2026-07-01' AND d.posted_at < DATE '2026-08-01' ORDER BY d.transfer_group_id;"
 },
 {
  "id": "N37",
  "text": "Among CAD purchases posted during July 2026 that received refunds posted from July 1 through August 2, 2026, which three had the largest combined refunded amount? Combine multiple refunds against the same purchase. Return purchase transaction id, original purchase amount, total refunded amount and original amount minus refunds, all amounts in cents. Sort by total refunded amount descending, then purchase transaction id ascending to break ties.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "purchase_id",
   "purchase_amount",
   "refunded",
   "remaining"
  ],
  "ordered": true,
  "gold_sql": "SELECT p.transaction_id AS purchase_id, p.amount_minor AS purchase_amount, SUM(r.amount_minor) AS refunded, p.amount_minor-SUM(r.amount_minor) AS remaining FROM transactions p JOIN transactions r ON r.related_transaction_id=p.transaction_id AND r.event_kind='refund' AND r.status='posted' AND r.currency='CAD' AND r.posted_at >= DATE '2026-07-01' AND r.posted_at < DATE '2026-08-03' WHERE p.event_kind='purchase' AND p.status='posted' AND p.currency='CAD' AND p.posted_at >= DATE '2026-07-01' AND p.posted_at < DATE '2026-08-01' GROUP BY p.transaction_id,p.amount_minor ORDER BY refunded DESC,purchase_id ASC LIMIT 3;"
 },
 {
  "id": "N38",
  "text": "Which three dates in July 2026 had the highest signed change in the combined CAD account balance from daily opening to daily closing? Rank all dates, including decreases. Return date and balance change in cents, sorted by balance change descending, then date ascending to break ties.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "balance_date",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT balance_date, SUM(closing_minor-opening_minor) AS amount FROM account_daily WHERE currency='CAD' AND balance_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31' GROUP BY balance_date ORDER BY amount DESC,balance_date ASC LIMIT 3;"
 },
 {
  "id": "N39",
  "text": "Which CAD accounts marked open in the supplied account snapshot had no transactions of any kind posted during July 2026? Return account id, sorted ascending.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "account_id"
  ],
  "ordered": true,
  "gold_sql": "SELECT a.account_id FROM accounts a WHERE a.account_status='open' AND a.currency='CAD' AND NOT EXISTS (SELECT 1 FROM transactions t WHERE t.account_id=a.account_id AND t.status='posted' AND t.posted_at >= DATE '2026-07-01' AND t.posted_at < DATE '2026-08-01') ORDER BY a.account_id;"
 },
 {
  "id": "N40",
  "text": "How much net USD card spend posted during July 2026 belonged to each reporting group? Exclude activity without an assigned category. Return reporting group and amount in cents, sorted by reporting group ascending.",
  "kind": "analytical",
  "tier": 3,
  "columns": [
   "reporting_group",
   "amount"
  ],
  "ordered": true,
  "gold_sql": "SELECT c.reporting_group, SUM(s.net_spend_minor) AS amount FROM card_spend_daily s JOIN categories c ON s.category_id=c.category_id WHERE s.currency='USD' AND s.spend_date BETWEEN DATE '2026-07-01' AND DATE '2026-07-31' GROUP BY c.reporting_group ORDER BY c.reporting_group;"
 }
]
