Check an agent's answer
The exact query the agent ran on "orders", run again here. No AI in between.
What the agent asked
- Computes paid_revenue: sum of amount where status is "paid"
- Grouped by customers.segment
Query as sent
{
"group_by": [
"customers.segment"
],
"metrics": [
{
"fn": "sum",
"column": "amount",
"as": "paid_revenue",
"where": [
{
"column": "status",
"op": "eq",
"value": "paid"
}
]
}
],
"limit": 100,
"offset": 0
}Result on version 1
4 rows.
| customers.segment | paid_revenue |
|---|---|
| Enterprise | 8,980 |
| Mid-market | 6,500 |
| SMB | 8,630 |
| null | 250 |