MetricBench
Can an AI agent answer business questions about real data correctly? Four models, 78 questions with known answers about the Olist e-commerce dataset, three ways to reach the data. Repository and method
Accuracy by model and access
The 68 questions the data can answer: 64 the semantic layer covers and 4 answerable only from raw data. The other 10 can't be answered, and every model said so in every arm. A number counts as right within 0.1%. Gemini ran out of its 14 turns on 41 raw SQL questions and on 6 with the glossary; those count as not right.
Why raw SQL misses
Each of the 146 wrong raw SQL answers, matched against the answer under 14 wrong readings of the question. Three out of four are one convention: which orders count.
| The model's answer matches | Wrong answers |
|---|---|
| Counting every order status, canceled and unavailable included | 109 |
| Late meaning after the estimated timestamp, not on a later calendar day | 18 |
| Every order status, and payments taken as revenue | 5 |
| Freight added to the item price | 5 |
| Other readings and pairs (freight, payments, the items–payments join) | 4 |
| None of the readings tried | 5 |
Accuracy by trap
All four models together, all 78 questions. A question can have several traps, and a low number here does not mean the models fell into that trap: most questions with any tag also depend on which orders count.
Every question
Each square is one answer: the four models (Haiku, Sonnet, Opus, Gemini) for raw SQL, then with the glossary, then through the semantic layer. Click a question to read the answers.