

Why does AI data analytics return four answers to one question?
AI data analytics is the use of artificial intelligence, mostly large language models and machine learning, to carry out the steps of an analysis: write and run queries, prepare data, find patterns, and explain the result in plain language. It drafts SQL and summaries fast. Where it slips is the question. A plain-language question about a business metric often maps to several correct queries, each with its own number, so check every answer against the agreed metric definition, the query it ran, and a reference number before anyone acts on it.
Where AI helps in an analysis today
Google Cloud defines AI data analytics as the practice of using AI to analyze large datasets and find trends for data analysts. Among its examples are help writing SQL and Python in BigQuery and training predictive models with SQL in BigQuery ML. Databricks describes AI help at each stage of the analytics workflow, from data collection and preparation through analysis, visualization, and the decision itself. Its list includes natural-language querying, anomaly detection, and plain-language summaries of technical findings.
Taken together, those descriptions split the work into five tasks. Read the right-hand column first.
| Task | What the AI does | What a person still decides |
|---|---|---|
| Querying | Turns a plain-language question into SQL or Python and runs it | Which metric definition the question means |
| Preparation | Suggests joins, cleaning steps, and fixes for missing values | Which records count and which are excluded |
| Pattern finding | Flags unusual values, trends, and segments that moved | Whether a flag matters to the business |
| Prediction | Trains a forecasting or classification model | Whether the model's error is acceptable for the decision |
| Explanation | Summarizes results and drafts commentary | What caused a move and what to do next |
AI speeds up the mechanical part of each task. Every task still rests on a business decision that someone made, often years ago, in a spreadsheet or a meeting. The Databricks guide warns that fast, confident output can lead users to rely on results they have not validated, and it names version control, reproducible workflows, and audit trails as governance needs.
October's average order value, four ways
A merchandising lead at an online brand opens an AI tool and types: "What was our average order value in October?" The brand's order table records product sales after discounts, shipping and tax charged, and refunds of product sales. Fifty of October's orders were internal test orders placed by the operations team.
Finance settled on a definition last year. Average order value is net product sales after refunds, excluding test orders, divided by orders that were neither test orders nor refunded in full.
The brand, its orders, and that finance rule are invented for this post. Every figure below is arithmetic on Table 1, rechecked in Python, and none of them comes from a customer or from Orion.
Table 1. October orders, by group.
| Order group | Orders | Product sales after discounts | Shipping and tax charged | Refunds of product sales |
|---|---|---|---|---|
| Kept, no refund | 9,500 | $760,000 | $95,000 | $0 |
| Partly refunded | 300 | $36,000 | $3,600 | $12,000 |
| Refunded in full | 150 | $12,000 | $1,400 | $12,000 |
| Internal test orders | 50 | $3,000 | $0 | $0 |
| All orders | 10,000 | $811,000 | $100,000 | $24,000 |
Four readings of "average order value" are reasonable here, and each one has correct SQL behind it.
Table 2. Four readings of the same question.
| Reading | Numerator | Denominator | Result |
|---|---|---|---|
| A. Everything charged, all orders | $811,000 + $100,000 = $911,000 | 10,000 | $91.10 |
| B. Product sales, all orders | $811,000 | 10,000 | $81.10 |
| C. Product sales net of refunds, all orders | $811,000 - $24,000 = $787,000 | 10,000 | $78.70 |
| D. Finance definition | $760,000 + ($36,000 - $12,000) + ($12,000 - $12,000) = $784,000 | 9,500 + 300 = 9,800 | $80.00 |
Reading D leaves the $3,000 of test sales out of the numerator, and it drops the 50 test orders and the 150 fully refunded orders from the denominator. The four answers span $12.40, which is 15.5% of the agreed figure. Reading A alone comes in 13.9% above it.
An AI tool that finds a column named order_total, which includes shipping and tax, has good reason to pick reading A. Nothing in the schema says that finance excludes refunded orders.
The direction of change is at stake too. Suppose last month's review deck shows a September average order value of $82.00 under the finance definition. Set reading A for October beside that slide and the review sees an 11.1% rise. Under the finance definition, average order value fell 2.4%.
How can correct SQL give the wrong number?
Two kinds of error reach a business review. An error of mechanics is wrong SQL: a join that duplicates rows, a filter on the wrong date column, or an average of averages. An error of meaning is correct SQL for some definition other than the one the team agreed. Readings A, B, and C are all errors of meaning, and they are the harder kind to catch, because each number looks plausible.
Research on text-to-SQL, the task of turning a question into a database query, shows how much context even the mechanics need. The Spider 2.0 benchmark, first published in November 2024, collected 632 problems drawn from enterprise database use cases, often on databases with over 1,000 columns. The authors' code agent, based on o1-preview, solved 21.3% of the tasks. The same agent solved 91.2% on the earlier Spider 1.0 benchmark and 73.0% on BIRD. Solving the problems, the authors report, frequently required searching database metadata, SQL dialect documentation, and project code.
Those scores describe the models tested in that paper and say nothing about the tools on sale today. What carries over is the dependence on context. The paper's agent needed metadata, dialect documentation, and project code to get the mechanics right. A question about a business metric needs one more input: which version of the metric the team uses.
Seven checks before an AI answer reaches a decision
Run these on every answer that will feed a decision. The third column shows what each check catches in the October example.
| Check | Question to ask | What it catches here |
|---|---|---|
| Definition | Does the query name and apply the agreed metric definition? | Readings A, B, and C |
| Filters | Are test, internal, and fully refunded records excluded under the written rule? | Test orders and refunded orders in A, B, and C |
| Numerator and denominator | Are both counted from rows, with the same exclusions on each side? | Reading C removes refunds from sales but keeps refunded orders in the count |
| Period | Is the period complete, in the agreed time zone, and cut at the same boundary as the reference report? | A partial last day, a UTC cutoff against a local-time report |
| Reconciliation | Do the totals match a trusted report within an agreed tolerance? | $811,000 of product sales against the finance ledger |
| Comparison | Do both periods use the same definition? | The 11.1% rise against the 2.4% fall |
| Repeatability | Does the same question, asked again, produce the same query and number? | A reading that changes between runs |
Ask for the work in a form a reviewer can read: the SQL, the row count after each filter, and the totals before division. Someone who knows the business can check those in a few minutes. Someone handed only the final $91.10 cannot check anything.
For each core metric, keep a reference number from the report the business already trusts, and reconcile to it first. If the AI's total product sales differs from the ledger, the average built on that total will differ too.
Where should a governed definition live?
A governed definition is a metric formula with a named owner, stored in one place and used by every report and tool that shows the metric. Its usual home is the existing semantic layer, the model that maps warehouse tables to business terms.
Looker's introduction to LookML describes writing SQL expressions once, in one place, so that Looker can reuse the code whenever it generates a query. With the dbt Semantic Layer, data teams define metrics on top of existing models, and business units work from the same definitions in any tool. Its documentation adds that AI tools can connect through the dbt MCP server, so their answers rest on governed metrics and they stop guessing at raw tables.
Some rules do not fit a model. Finance closes October on the third business day. Test accounts gained a flag in March, so older test orders need a list. A refund issued in November for an October order counts against October. Write those rules down beside the definition, with the owner's name. Semantic layer vs. business context explains how the two kinds of context differ.
Built-in assistants, and what Orion adds
Warehouses and BI tools ship their own AI assistants, and many teams should start with them. According to Google Cloud, Gemini in BigQuery helps write and edit SQL and Python, and Gemini in Looker builds reports and calculated fields from a conversation. In Databricks Genie, data teams configure datasets, sample queries, and instructions to give business users a trusted data environment. When the definitions live inside the product a team already uses, its assistant can draw on them. For a one-off question that one analyst owns, a notebook still does the job.
Orion is the analytics platform Gravity makes for the team that wants the seven checks applied to every recurring answer. The know-how comes from that team: average order value excludes test orders and fully refunded ones, the finance ledger total settles any dispute, October closes on the third business day, and finance owns the definition. Orion stores those rules as Context pages and reads the existing semantic layer, such as LookML or dbt, beside the warehouse tables.
Rules nobody wrote down turn up during analysis. Suppose an answer exposes the list of test orders from before the March flag. Orion offers a new or changed Context page as a Context card, and a project editor applies or dismisses it. Questions that only a person can answer, such as what caused a move, arrive as cards too, next to the analyses Orion suggests running. Each answer comes with an analysis notebook holding the SQL and Python, which a reviewer can inspect, edit, and rerun, so the filters and the totals before division are there to check.
When a check keeps holding up and the team requests it, Orion converts the analysis into a Workflow and tries it in a dry run. The Workflow is saved only after the team approves it. On the schedule the team sets, it recalculates the metric and highlights what moved it. A decision step then weighs the result against a plain-language rule from the team, for example: hold the report unless product sales reconcile to the finance ledger within the agreed tolerance.
At Flex Mobile, a consumer brand of IM Telecom, compliance and logistics each reported numbers their own way, and leadership got slightly different answers to the same question from the same data. Its reporting owner now validates what Orion produces and no longer builds reports from scratch. When she asked Orion to compare 30 days of payment data against Stripe records, Orion found about 10% of auto-payments being rejected, according to the Flex case study.
A first request that puts the October checks to work might read: "Using the average order value definition in our Context page, calculate October and September. Reconcile total product sales to the finance ledger, show the orders excluded at each filter, and show the SQL. Then list any other reading of average order value our tables would support and the number each would give." The last sentence asks for the rival readings, so a reviewer sees the other numbers before anyone else quotes them.
Settle the definition, then ask
Pick the metrics your reviews argue about most. For each one, write down the agreed definition, the owner, the exclusions, and the report it must reconcile to, and keep them where every tool that answers questions can read them. Then ask the question and run the seven checks on the answer.
In the example, October's average order value under the agreed definition is $80.00, down 2.4% from September. Three other numbers were one plain-language question away, and one of them showed a rise. Which definition the business uses is a decision to make once and write down before anyone asks again.