data analyst· analytics

Business question into a checked SQL answer

The agent finds the right tables, writes a query, runs it read-only and sanity-checks the result. It returns the answer with the query, row counts and assumptions. You review it before sharing.

supervisedAn afternoon6 steps

What the agent does

  1. 1

    Read the question.

  2. 2

    Find the tables.

  3. 3

    Write the query.

  4. 4

    Run it read-only.

  5. 5

    Sanity-check the result.

  6. 6

    Explain it with assumptions. → analyst reviews before sharing

Enough to decide?

Similar setup documented
Required input
No example input written yet
Example output
No example output written yet
Permission
analyst reviews before sharing
Stop condition
wrong join; show query and row counts
Reviewer
Reviewer to be named · About this entry
Last run
Not run by us yet

What it costs to run

A rough range per run, from the cheapest to the dearest of the paid models we checked. Your real cost depends on how much text you send.

Checked 2026-11-25 source

$0.002 to $0.48 per run · $0.025 per run with a mid-priced model

Small, cheap model
$0.002 per runPer 100 runs: $0.17qwen3.7-flash (0-32K) · Alibaba Model Studio (Qwen)
Typical
$0.025 per runPer 100 runs: $2.52Mistral Large · Mistral
Large model
$0.48 per runPer 100 runs: $48.00Claude Fable 5.2 · Anthropic

Free tiers and local models can bring this to zero while you test.

How we worked this out
  • 6 model calls, one per step (at least 2)
  • 4,000 input tokens per call (it reads documents or data)
  • 800 output tokens per call
  • each call re-reads the earlier outputs
  • no retries, no loops, no cached-input discount

list API prices in USD per 1M tokens, checked 2026-11-25; one pass through the steps

6 model calls · 36,000 input tokens · 4,800 output tokens

  • Longer inputs cost more; agents that retry or loop use more calls.
  • Free tiers may cover small volumes: see free AI tokens.
  • Local models have no per-token price but need your own hardware.

low = cheapest, mid = median, high = dearest of the 36 paid models with a confirmed price in our table; models without a confirmed numeric price are left out

Browse provider prices

Works with

Tags

Before you start

Access the agent needs
database, spreadsheet
Who approves
analyst reviews before sharing
What to log
every action it proposes and the decision taken
When to stop
wrong join; show query and row counts

Why it is worth it

Quick questions from colleagues take an analyst an hour each. A checked first answer, with the query shown, takes minutes to review.

Start this week

  • Give the agent read-only access and a short guide to your main tables.
  • Ask it the next business question you get, and request the query, row counts and assumptions.
  • Check the joins before you share the answer.

Watch out for

A wrong join gives a confident wrong number. Always look at the query.

Measure this

Time from question to answer.

About this entry

Similar setup documented Checked 2026-11-27 Next check 2026-12-25 v2026-11-27.1 Reviewer to be named
Similar setup documented Checked 2026-11-27 Next check 2026-12-25 v2026-11-27.1 Reviewed by Reviewer to be named

What we checked

Each part of this entry, whether it was checked, when, and by whom.
ItemResultDateBySource and note
Text and stepsChecked2026-11-25——
Human checkpoint and risksChecked2026-11-25Reviewer to be named—
Workflow runNot checked yet———
Cost estimateChecked2026-11-25—source · mid-priced model assumed
Tool linksNot checked yet———
Outside evidenceChecked, with limits2026-11-27——

Limitations

  • An organisation has published a related setup, not this exact workflow. What differs is shown with the evidence.
  • Results reported by a vendor or customer are their claims, not our measurements.
  • Not checked yet: workflow run, tool links.

Change history

  1. Evidence label changed: Proposed pattern to Similar setup documented spec v2026-11-27.1
  2. Long text added: why it is worth it, how to start, what to watch out for, how to measure it spec v2026-11-26.1
  3. Added to the catalogue spec v2026-11-25.1

Full history

Evidence

  • Uber · Adjacent pattern Close: an agent picks the relevant tables, writes the SQL and explains it. Differs: the post does not say the query is run read-only and sanity-checked by the agent; users confirm the table list and a validation agent was still planned. No execution or result checking is described as a production step (a validation agent was still planned and hallucination was 'not completely solved'). Limited release. Company's own estimates and survey. · source · 2026-11-27
  • LinkedIn · Adjacent pattern Close: SQL Bot finds the right tables, writes the query and self-corrects errors. Differs: the check is a database EXPLAIN, a dry run that plans the query without running it, so there are no row counts. No analyst review step before sharing is described. The check is a dry run (EXPLAIN), not a real run with row counts; no analyst review before results are shared is described. The accuracy figure is from a user survey, not a measurement. Company's own figures. · source · 2026-11-27
Spec versions
  • v2026-11-27.1 · Evidence label changed: Proposed pattern to Similar setup documented
  • v2026-11-26.1 · Long text added: why it is worth it, how to start, what to watch out for, how to measure it
  • v2026-11-25.1 · Added to the catalogue

Run it with AI

Pick the AI you already use.

Least setupMost control

{
    "name": "ad-hoc-question-answerer-0038",
    "goal": "Business question into a checked SQL answer",
    "persona": [
        "data-analyst"
    ],
    "autonomy": "supervised",
    "tools": [
        "database",
        "spreadsheet"
    ],
    "plan": [
        "Read the question.",
        "Find the tables.",
        "Write the query.",
        "Run it read-only.",
        "Sanity-check the result.",
        "Explain it with assumptions."
    ],
    "human_in_the_loop": "analyst reviews before sharing",
    "guardrails": "wrong join; show query and row counts",
    "output": "a draft for human review"
}

Copies the prompt, then opens the tool. Paste it in to start.

The prompt is built in your browser. It reaches an AI only when you paste it in or open it there.What are these forms?

At a glance

Industry
analytics
Autonomy
supervised
Difficulty
An afternoon
Steps
6 · 1 human checkpoint
Runs as
on demand
Data touched
read-only
Needs approval
analyst reviews before sharing
What it costs to run
$0.025 per run with a mid-priced model
ID
UC-0038

Compare routes for this job

Share this comparison

Business question into a checked SQL answer · UC-0038 · 3 of 3 routes for this job. Each cell is dated and sourced where we have a check. This is not a winner column.

Compare routes for this job
For this jobClaude
Chat assistants
ChatGPT
Custom assistants
CrewAI
Agent builders and platforms
What you do by handPaste or attach the input each time, check the answer, and carry the result to where it goes yourself.Set up the assistant once with your instructions and files. Then paste or attach each new input, check the answer and carry the result on.Build and test the agent once. Then do the human checkpoint this use case names (approve, edit or decide) and check its work regularly.
Human checkpoint
analyst reviews before sharing
Typical API cost (same for every route)

$0.025 per run with a mid-priced model

Same figure for every route above — subscription prices are in the row below.

Typical tier: Mistral Large · Mistral

checked 2026-11-25 · pricing source

Learning curvePoint and clickPoint and clickCode
Price modelfree tierfree tierfree
Where your data goesWhat you type and upload goes to Anthropic's servers and is handled under its terms. Check its data settings before you use real work data.What you type and upload goes to OpenAI's servers and is handled under its terms. Check its data settings before you use real work data.Your code decides: your data goes to the models and services you connect, so a local model keeps it on your machine. It may also send anonymous usage data to its makers by default; check its docs to turn that off.
Before you startAn account on the website. The free plan is enough to try it.An account on the website. The free plan is enough to try it.Python on your computer, basic coding, and access to a model (an API key or a local model).
Evidence for this routeProposed patternProposed patternProposed pattern
OpenOpen in run panel Tool pageOpen in run panel Tool pageOpen in run panel Tool page

Comparison version 2026-11-27.2 ·

Where to go from here

All data analyst use cases

Similar work

These use cases do the same kinds of work as this one. Each card shows what they have in common.

Same kinds of tools, a different job

These use cases connect to the same kinds of tools as this one, so part of your setup carries over.