Can camelAI answer questions using connected database data?
camelAI answered the monthly comparison, total-value and top-product questions correctly, but its relative-date count missed the required start day. It returned the reference values of 10 more August orders, $14,403.87 in August orders and a top-product tie at 6 units each. For the date-window question, it returned 24 orders against the reference count of 26.
3 of 4 test cases passed · 1 failed
Every test case in this scenario has a result.
The 4 test cases
Each test case is judged on its own: Pass, Fail, Not gradable, or Untested. The scenario result above is based on these test cases.
Order count in a defined periodFailEvidence
“As of September 2, 2026, how many orders were placed in the last 30 days?”
24 orders were placed in the 30 calendar days from August 4 through September 2, 2026 (inclusive), based on public.orders.placed_at in the connected database. The latest matching order was placed on September 1 UTC.
Transcribed from Proof 1 · Screenshot
Every message the tool sent, in order (2)
- Query used for the answer · not part of the answer
const r = await tools.camel__connections_query({connection:"customer_support_db", query:"SELECT COUNT(*) AS orders_last_30_calendar_days, MIN(placed_at) AS earliest_in_window, MAX(placed_at) AS latest_in_window, COUNT(*) FILTER (WHERE placed_at IS NULL) AS null_placed_at FROM public.orders WHERE placed_at >= TIMESTAMPTZ '2026-08-04 00:00:00+00' AND placed_at < TIMESTAMPTZ '2026-09-03 00:00:00+00'"}); return r; - Answer
The final response, printed above.
| ✗ | Expected: 26 orders from 3 August through 2 September 2026 inclusive, counting back 30 days and including the as-of date.Found: camelAI returned 24 orders; the reference query returned 26 for the required 3 August–2 September 2026 window. |
| ✗ | Expected: The answer states or clearly covers 3 August through 2 September 2026 inclusive: 30 days before the as-of date, plus that date.Found: It stated 4 August through 2 September 2026 inclusive, leaving out 3 August from the required window. |
The test counts back 30 days from 2 September 2026 and includes that date, making 3 August the start. camelAI counted 30 calendar days from 4 August and returned 24, correct for its chosen window, rather than 26 for the required window.
Order-date checks. For the date-window count, camelAI checked for missing order dates and reported the earliest and latest orders in range.
Order-count difference between two monthsPassEvidence
“As of September 2, 2026, how many more orders were placed in August 2026 than in July 2026?”
10 more orders were placed in August 2026: 28 in August versus 18 in July, based on the orders.placed_at dates in the connected database.
Transcribed from Proof 1 · Screenshot
Every message the tool sent, in order (2)
- Query used for the answer · not part of the answer
return await tools.camel__connections_query({connection:"customer_support_db", query:"SELECT date_trunc('month', placed_at)::date AS month, COUNT(*) AS orders_placed, MIN(placed_at) AS first_order, MAX(placed_at) AS last_order FROM orders WHERE placed_at >= TIMESTAMPTZ '2026-07-01 00:00:00+00' AND placed_at < TIMESTAMPTZ '2026-09-01 00:00:00+00' GROUP BY 1 ORDER BY 1"}); - Answer
The final response, printed above.
| ✓ | Expected: 10 more orders in August 2026 than July 2026, from 28 versus 18 orders.Found: It returned a difference of 10 orders; the reference query also returned 10. |
| ✓ | Expected: August 2026 has more orders than July 2026: 28 versus 18.Found: It reported 28 orders in August and 18 in July, the same counts returned by the reference query. |
camelAI used the required calendar months and returned the reference difference of 10 orders, with 28 in August and 18 in July. The database was refreshed after the test was written, so comparisons use reference queries from the same session.
Total order value in a calendar monthPassEvidence
“As of September 2, 2026, what was the combined total amount of all orders placed in August 2026?”
Orders placed in August 2026 totaled $14,403.87 USD across 28 orders. I summed orders.total_amount for orders placed from August 1 through August 31, 2026.
Transcribed from Proof 1 · Screenshot
Every message the tool sent, in order (2)
- Query used for the answer · not part of the answer
const r=await tools.camel__connections_query({connection:"customer_support_db",query:"SELECT currency, COUNT(*) AS order_count, SUM(total_amount) AS combined_total, MIN(placed_at) AS first_placed_at, MAX(placed_at) AS last_placed_at FROM public.orders WHERE placed_at >= TIMESTAMPTZ '2026-08-01 00:00:00+00' AND placed_at < TIMESTAMPTZ '2026-09-01 00:00:00+00' GROUP BY currency ORDER BY currency"}); return r; - Answer
The final response, printed above.
| ✓ | Expected: A combined August 2026 order total of $14,403.87 USD across 28 orders.Found: It returned $14,403.87 USD across 28 orders; the reference query returned $14,403.87 USD across 28 orders. |
| ✓ | Expected: August 2026, covering all orders without excluding any status.Found: It stated 1–31 August 2026 and summed the order amounts without filtering by order status. |
The answer and database reference both give $14,403.87 across 28 orders. camelAI used the required month without excluding any order status.
Currency-aware total. In the August order-total calculation, camelAI grouped amounts by currency; the result contained one US-dollar group, so the total did not mix currencies.
Top product by units ordered in a monthPassEvidence
“As of September 2, 2026, which product had the most units ordered in August 2026, and how many units?”
There's a tie for the most units ordered in August 2026: Brass picture frame, 8×10 and Round wall mirror, 24in, with 6 units each. I summed order-item quantities for orders placed from August 1 through August 31 (UTC).
Transcribed from Proof 1 · Screenshot
Every message the tool sent, in order (2)
- Query used for the answer · not part of the answer
const r = await tools.camel__connections_query({connection:"customer_support_db", query:"SELECT p.id AS product_id, p.name AS product, SUM(oi.quantity)::bigint AS units_ordered, COUNT(DISTINCT o.id)::bigint AS orders FROM orders o JOIN order_items oi ON oi.order_id=o.id JOIN products p ON p.id=oi.product_id WHERE o.placed_at >= TIMESTAMPTZ '2026-08-01 00:00:00+00' AND o.placed_at < TIMESTAMPTZ '2026-09-01 00:00:00+00' GROUP BY p.id, p.name ORDER BY units_ordered DESC, p.name ASC LIMIT 10"}); return r; - Answer
The final response, printed above.
| ✓ | Expected: The joint leaders are the 8-by-10 brass picture frame and the 24-inch round wall mirror, at 6 units each.Found: It named the 8-by-10 brass picture frame and 24-inch round wall mirror, the same two leaders as the reference query. |
| ✓ | Expected: 6 units for each joint leader.Found: It returned 6 units for each joint leader; the reference query also returned 6 each. |
The database reference has two joint leaders at 6 units each; a tied leader qualifies as a top product. camelAI named both and gave 6 units each, so the tie still provides an answer to the question.
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.
How this scenario is graded
How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.
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.
- 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.
| Level | Name | Scope |
|---|---|---|
| Benchmark | AI Database Agents → | 28 scenarios · 11 tools |
| Capability | Question Answering → | |
| Scenario | The answer is available in the connected data → | |
| Tool | camelAI → |
Global scenario definition → · Global capability definition → · camelAI product page →
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.
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.
You run the same kind of test against your own setup and get the same behaviour.
Agree →Yours behaves differently. Tell us what you got, with a screenshot if you have one.
Disagree →Something here is wrong — a reference value, a transcription, a grade.
Report an issue →Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.
Vendor notice →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.
File fingerprints (SHA-256)
A fingerprint identifies the exact file used for this result.