Is your data ready for AI? A seven-point checklist
Findable, defined, trustworthy, traceable, connected, protected, owned. A practical AI data readiness checklist for SMEs and mid-market firms.
Data foundations
Last updated

In dbt Labs' April 2026 benchmark, frontier models answered 64.5% of business questions correctly with raw text-to-SQL, rising to 84–90% once the underlying data was modelled, and 98–100% once questions were routed through a semantic layer. Text-to-SQL fails silently with a plausible wrong number; a semantic layer fails loudly. Use each where it fits.
| Approach | Accuracy | What it means |
|---|---|---|
| Raw text-to-SQL (unmodelled tables) | 64.5% | The model guesses joins, filters and which "revenue" you mean, from scratch, every time |
| Text-to-SQL against modelled data | 84.1–90.0% | Better once tables are tidied and labelled, but still guessing which business logic applies |
| Semantic layer (modelled questions) | 98.2–100% | The model picks from a certified, pre-agreed definition instead of writing new logic |
The study, an April 2026 re-run of dbt Labs’ own benchmark, tested Claude Sonnet and Opus 4.6, GPT-5.3-Codex and GPT-5.2 against an eleven-question set on a synthetic insurance dataset, twenty runs per question. It’s worth noting what “modelled questions” means here: the semantic layer’s 98–100% applies to the kind of question it was actually built to answer, not to anything you could theoretically ask. That caveat isn’t a weakness in the finding so much as the entire point of the finding, which the next section explains.
A 65% accuracy rate sounds workable until you ask what the other 35% looks like. dbt Labs’ own framing is the important part: raw text-to-SQL “returns plausible but incorrect answers silently”. There’s no flag, no lower confidence tone, no visible hedge. A wrong join that quietly double-counts a table, or a filter the model guessed rather than confirmed, produces a number that reads exactly like a right one. A semantic layer inverts that failure mode. When a question falls outside what’s been modelled, a well-built one says so explicitly, rather than reaching for the nearest table and improvising. That’s a genuinely different kind of wrong: one you can see coming, and one that tells you when to stop trusting the output rather than letting you find out later, in a board meeting.
The dbt Labs benchmark isn’t the only data point. An independent study on arXiv (Rumiantsau and Fokeev, 28 April 2026) ran a separate test: 100 questions against a synthetic retail dataset, across Claude Opus 4.7, Claude Sonnet 4.6 and GPT-5.4. Adding a compact, 4 KB semantic document to the prompt lifted accuracy by 17 to 23 percentage points, taking the models from 45.5–50.5% without it to 67.7–68.7% with it (p < 0.01). Two findings from that study matter beyond the headline number. First, the three models converged to a similar accuracy once the semantic context was added, which means the definitions did more work than the choice of model. Second, this was a much smaller, cheaper intervention than a full production semantic layer: a single short document, not a governed platform, still moved the needle substantially. That’s useful evidence that even a partial step (writing your key definitions down somewhere an AI tool can read them) is worth doing before a bigger project is scoped.
None of this makes text-to-SQL a bad tool; it makes it the wrong tool for a specific job. It remains genuinely useful for ad hoc exploration: an analyst poking at a new question that hasn’t been modelled yet, checking a hunch, or looking at data nobody has built a certified metric for. dbt Labs’ own recommendation, drawn from the same study, is directly usable as a rule of thumb: reserve the semantic layer for “board data, auditors, OKRs, KPIs, weekly reports”, and keep text-to-SQL for genuine ad hoc exploration where nothing has been defined yet and a rough, checkable answer is enough.
There’s a second, quieter reason text-to-SQL still earns its place: coverage. A semantic layer only answers questions it has been built to answer. However carefully you pick your twenty or so core metrics, someone will eventually ask something outside that list, a one-off question about a specific transaction, a new product line nobody has modelled yet, a hunch worth ten minutes of digging. Refusing that question outright, or waiting weeks for it to be added to the semantic model, pushes people back towards pasting exports into a chat tool, which is the exact behaviour a governed setup is meant to replace. The honest answer is to let text-to-SQL take those questions, clearly labelled as exploratory, while the growing list of things people ask repeatedly graduates into the semantic layer over time.
In practice, most businesses don’t choose one approach and switch off the other; they draw a boundary and move it as they learn. A sensible starting boundary looks like this: anything that appears in a board pack, a weekly report, or a recurring dashboard goes through the semantic layer, no exceptions, because that’s exactly the class of question the dbt benchmark shows going wrong most expensively. Anything genuinely new, unusual or exploratory goes through text-to-SQL, ideally against a sandboxed replica rather than the production warehouse, so an occasional bad guess costs nothing beyond a wasted query. The boundary isn’t fixed: when the same “exploratory” question gets asked for the third or fourth time, that’s the signal to promote it into a certified metric rather than leaving it to be silently re-guessed by the model every time it comes up.
Two practical habits keep this honest rather than aspirational. First, tag every AI-generated answer with which route produced it, semantic layer or free-form SQL, even if that’s just a line of small print under the answer. People make very different trust decisions about a number depending on which one they’re looking at, and they can only do that if the distinction is visible rather than hidden inside the tooling. Second, keep a running list of the questions text-to-SQL gets asked most often. That list is, in effect, a prioritised backlog for what to model next, and it turns an argument about “should we build a semantic layer” into a much smaller, evidence-based argument about which five metrics to add this quarter.
The practical answer for most businesses isn’t choosing one over the other; it’s routing each kind of question to the tool suited to it. Semantic layer queries handle anything that will be asked more than once, reported regularly, or shown to someone outside the room: revenue, margin, active customers, churn. Free-form text-to-SQL stays available for exploration, ideally against a sandboxed copy of the data rather than production tables, so a wrong guess costs nothing more than a wasted query. The two aren’t in competition; a well-run analytics setup uses both, and the discipline is simply being honest about which questions belong in which bucket, and building an evaluation set of real questions so you can tell, concretely, whether either approach is actually working before you rely on it.
Building that evaluation set is worth doing before you build anything else. Write down twenty to thirty real questions people actually ask, along with the answer a careful human would give today, and re-run that same set every time the semantic layer changes or a model is upgraded. That’s the only reliable way to know whether a change made things better or quietly made them worse, and it costs an afternoon rather than a project.
Getting from a pile of raw tables to a working semantic layer for the numbers that matter usually takes a few weeks, not months, once the definitions themselves are agreed; our semantic layer service builds exactly this, in whichever platform your team already uses day to day, and our AI data readiness review is the right starting point if you’re not yet sure which twenty numbers to model first.
This looks like
Not on its own. In the most recent benchmark, raw text-to-SQL against unmodelled data answered 64.5% of business questions correctly, and the wrong 35% often looked just as plausible as the right answers. Use it for exploration, not for numbers that go in front of a board.
Text-to-SQL turns a plain-English question into a database query from scratch each time, guessing at joins and filters. A semantic layer holds pre-agreed metric definitions, joins and access rules that every query, human or AI, selects from by name instead of reinventing.
Because a silent failure is far more dangerous than a visible one. Text-to-SQL's wrong answers look exactly like its right ones, so nobody knows to check. A well-built semantic layer says explicitly when a question falls outside what's defined, which is a safer kind of wrong.
Less than you'd expect. An April 2026 arXiv study found accuracy converging in a similar range across Claude and GPT models once a small semantic document was added, with the semantic context contributing more to the improvement than which frontier model ran the query.
Yes, and it's usually the right set-up. Route metric and reporting questions through the semantic layer, and keep free-form text-to-SQL available in a sandbox for genuine ad hoc exploration where a defined metric doesn't yet exist.
For the twenty or so numbers a typical business actually reports on, a first working semantic model is usually achievable within three to four weeks, including agreeing the definitions, which is often the slower part of the two.
Terms used in this article