AI Demos Research — the structured-intelligence platform. Every verdict on these pages opens to the execution behind it.
Graded 20 November 2026

Does BlazeSQL correctly understand a follow-up question that refers to its previous answer?

BlazeSQL kept the previous answer's customer group when answering the follow-up. Its order-count reply covered the same five customers in the same spend order, without asking who was meant.

1 of 1 test case passed

Every test case in this scenario has a result.

Pass rate100%1 of 1 gradable
Coverage1 of 1test case with a result
1PassDid everything it was expected to do.
0FailNo test case failed.
0Not gradableEvery result here could be graded.
0UntestedEvery test case in this scenario has a result.
The pass rate is a summary. The evidence is the test case below: what we sent, what we checked, what the tool returned, and the proof.

The test case

Each test case is judged on its own: Pass, Fail, Not gradable, or Untested. The scenario result above is based on this test case.

"They" refers to the previous answer's setPassEvidence
What we sent

Input 1 · Initial question: “Who are our top 5 customers by total spend?”

Input 2 · Follow-up question: “How many orders did they place in the last 90 days?”

What the tool returned

First answer after revision

Here's the refined view! A couple of improvements made: Excluded cancelled orders and any orders with a refund on record Filtered to USD only to ensure spend figures are truly comparable A few quick observations: Wei Zhang leads by a notable margin at ~$7,710 Deshawn Carter follows at ~$6,143 There's a visible drop-off after the top 2 Would you like to dig deeper into any of these customers, or perhaps look at their purchase categories or order history?

Follow-up order counts

Top 5 Customers - Orders in Last 90 Days name | orders_last_90_days Wei Zhang | 8 Deshawn Carter | 6 Hannah Kowalski | 2 Dev Raghavan | 6 Marcus Whitfield | 4 A few highlights: Wei Zhang remains the most active with 8 orders in the last 90 days Deshawn Carter & Dev Raghavan are tied at 6 orders each Hannah Kowalski has the lowest recent activity at just 2 orders, despite being 3rd in total spend Would you like to explore anything else, such as their average order value, most purchased categories, or support ticket history?

Transcribed from Proof 3 · Screenshot

Every message the tool sent, in order (9)
  1. Initial spend query · not part of the answer
    Generated query: Top 5 Customers by Total Spend
    SELECT
        c.id AS customer_id,
        c.name,
        c.email,
        COUNT(o.id) AS total_orders,
        SUM(o.total_amount) AS total_spend
    FROM customers c
    JOIN orders o
        ON c.id = o.customer_id
    GROUP BY
        c.id,
        c.name,
        c.email
    ORDER BY total_spend DESC
    LIMIT 5
  2. Initial query explanation

    Query logic:

    1. Join customers to orders on customer_id.
    2. Group by customer and aggregate order count and total spend.
    3. Order by total spend descending and limit to top 5.
    Show the reply as returned (Markdown)
    Query logic:
    1. Join customers to orders on customer_id.
    2. Group by customer and aggregate order count and total spend.
    3. Order by total spend descending and limit to top 5.
  3. Unasked revision announced

    I noticed the previous query could be improved — it didn't exclude cancelled/refunded orders, and didn't account for currency consistency. Let me fix that!

  4. Revised spend query · not part of the answer
    Generated query: Top 5 Customers by Total Spend (Excl. Cancelled/Refunded, USD)
    SELECT
        c.id AS customer_id,
        c.name,
        c.email,
        COUNT(o.id) AS total_orders,
        SUM(o.total_amount) AS total_spend,
        o.currency
    FROM customers c
    JOIN orders o
        ON c.id = o.customer_id
    WHERE
        o.status NOT IN ('cancelled')
        AND o.refunded_at IS NULL
        AND o.currency = 'USD'
    GROUP BY
        c.id,
        c.name,
        c.email,
        o.currency
    ORDER BY total_spend DESC
    LIMIT 5
  5. Revised query explanation

    Query logic:

    1. Join customers to orders on customer_id.
    2. Exclude cancelled orders (via status) and refunded orders (via refunded_at IS NULL), and restrict to USD currency.
    3. Group by customer and currency, aggregate order count and total spend.
    4. Order by total spend descending and limit to top 5.
    Show the reply as returned (Markdown)
    Query logic:
    1. Join customers to orders on customer_id.
    2. Exclude cancelled orders (via status) and refunded orders (via refunded_at IS NULL), and restrict to USD currency.
    3. Group by customer and currency, aggregate order count and total spend.
    4. Order by total spend descending and limit to top 5.
  6. First answer after revision

    Printed above.

  7. Follow-up order-count query · not part of the answer
    Generated query: Top 5 Customers - Orders in Last 90 Days
    WITH top_customers AS (
        SELECT
            c.id AS customer_id,
            c.name,
            SUM(o.total_amount) AS total_spend
        FROM customers c
        JOIN orders o
            ON c.id = o.customer_id
        WHERE
            o.status NOT IN ('cancelled')
            AND o.refunded_at IS NULL
            AND o.currency = 'USD'
        GROUP BY c.id, c.name
        ORDER BY total_spend DESC
        LIMIT 5
    )
    SELECT
        tc.name,
        COUNT(o.id) AS orders_last_90_days
    FROM top_customers tc
    LEFT JOIN orders o
        ON tc.customer_id = o.customer_id
        AND o.placed_at >= CURRENT_DATE - INTERVAL '90 days'
        AND o.status NOT IN ('cancelled')
        AND o.refunded_at IS NULL
        AND o.currency = 'USD'
    GROUP BY tc.name, tc.total_spend
    ORDER BY tc.total_spend DESC
  8. Follow-up query explanation

    Query logic:

    1. CTE identifies the top 5 customers by total spend, excluding cancelled and refunded USD orders.
    2. Left join those customers to orders placed in the last 90 days (from 2026-09-21), applying the same filters.
    3. Count qualifying orders per customer, preserving the top 5 spend ranking order.
      Let me go ahead and visualize that for easier comparison!
    Show the reply as returned (Markdown)
    Query logic:
    1. CTE identifies the top 5 customers by total spend, excluding cancelled and refunded USD orders.
    2. Left join those customers to orders placed in the last 90 days (from 2026-09-21), applying the same filters.
    3. Count qualifying orders per customer, preserving the top 5 spend ranking order.
    Let me go ahead and visualize that for easier comparison!
  9. Follow-up order counts

    The final response, printed above.

Expected vs. Found
✓Expected: Answer for the group the previous answer returned, without asking who was meant or silently changing the group.Found: It recalculated the same five-customer group from the revised first answer, kept its spend order and returned order counts without asking who was meant.
Supporting proof
Proof 1Screenshot
Chat screenshot: the first question and BlazeSQL's first top-five list by total spend
Open original ↗
Proof 2Screenshot
Chat screenshot: BlazeSQL's unasked revision of its first answer and the revised top five
Open original ↗
Proof 3Screenshot
Chat screenshot: the follow-up question and order counts for the same five customers
Open original ↗
Why this result

This result concerns whether the follow-up kept the same customers, not the choice of spend definition or reference date. BlazeSQL used the group from the first question's final answer without clarification.

Also observed in this test case

Spend redefined without being asked. BlazeSQL redefined spend unasked in its first answer, dropping cancelled, refunded and non-USD orders. The customer fourth by total spend as asked ($4,665.05) left the top five. Each list is accurate under its own definition.

Order counts used its run date. With no reference date given, BlazeSQL counted 90 days back from its run date, 21 September 2026.

Tested by Ayush Ghosh · evidence dated 21 September 2026

Configuration and setup

How this tool was set up for the run and what the test needed in place. Each row is a fact from the run's records; a fact the records do not hold is left out, not guessed.

Software that produced the output
BlazeSQL
Build or version
1.8.93
Surface
Web app
Set up before the run
A small, stable group of the highest-spending customers was required, with recent order counts available for exactly those customers.
Tested
21 September 2026 · Ayush Ghosh

How this scenario is graded

How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.

How results are decided

Each test case gets one result per tool: Pass, Fail or Not gradable. A test case we haven't run yet shows Untested. There are no partial results.

The rules
  • Pass: the tool did everything the test expected, and nothing it said contradicts the correct answer.
  • Fail: at least one expected behaviour clearly didn't happen; the test case's result says which one and quotes the tool.
  • Not gradable: our evidence couldn't settle the outcome (for example a record we needed is missing). It is never counted as a fail, and the test case's result says what's missing.

Where this sits in the benchmark

This page is one cell of a larger study: one tool, one scenario. Only this benchmark's frame appears here.

History of this result

What has happened to this result since it was first published. Runs and grades are never overwritten: a retest or a re-grade publishes a new result and keeps the earlier one readable.

from the publication record
9 October 2026First publishedAI Database Agents v1
29 October 2026Updated — retested
The result is unchanged: 1 pass · 0 fail. The earlier result stays readable. Read the earlier result →
30 October 2026Taken down
The page left the site; nothing was deleted.
23 November 2026Republished

Act on this result

Nothing filed here edits the run or the grade. A challenge opens a review, and a review can produce a new run or a re-grade — which becomes the current result and leaves this one in the history.

This matches what I see

You run the same kind of test against your own setup and get the same behaviour.

Agree →
This does not match

Yours behaves differently. Tell us what you got, with a screenshot if you have one.

Disagree →
Point out an issue

Something here is wrong — a reference value, a transcription, a grade.

Report an issue →
Request a retest

On a newer build, a larger dataset, or your own setup.

Request a retest →
We have fixed this

Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.

Vendor notice →
Filed against this evidenceNothing yet. Challenges, counter-evidence and fix notices appear here with their outcome, and stay on the page after they are resolved.
Cite this result
aidemos.com/benchmarks/ai-database-agents/results/blazesql/the-next-question-refers-to-the-previous-answer · 1 pass · 0 fail · coverage 1/1 · graded 2026-11-20

The same record is available as structured data through the AI Demos MCP server, with the counts, the coverage and every per-test-case reason carried as fields.

Verify the proof files

These files support this result. Open a file to inspect the original evidence.

Proof 1 · Screenshot ↗image/png · 88 KB
Proof 2 · Screenshot ↗image/png · 69 KB
Proof 3 · Screenshot ↗image/png · 75 KB
File fingerprints (SHA-256)

A fingerprint identifies the exact file used for this result.

Proof 1 · Screenshot50d6a51d91f33ea614351d90f5da24926f428e57e9f556dbad8de7073a22be48
Proof 2 · Screenshotb6f4b99d1f654586398cc8c44c4e79c660a42a3f12535e9204932ac11546194d
Proof 3 · Screenshotdde47710313778240d7b2581f564cc3c5e99a7ced101bf0d8e3cedcfae121060