growth analytics
marketing
← All essays

Text-to-SQL is solved. Self-serve analytics isn't.

Yalçın Kaya

Yalçın Kaya

Founder

2026-07-175 minAI · Data governance

Define text-to-SQL narrowly: converting an unambiguous natural-language question into a SQL query, given all the required context. By that definition, the problem is more or less solved — public evals have shown top models exceeding 97% accuracy when they are properly instructed, and models have only improved since.

So why isn't every company running AI data analysts? Why can't every operator just ask their warehouse a question?

The bottleneck is not the SQL

The failure point is the phrase hiding in the definition above: given all the required context. As the team behind one analytics startup put it bluntly, the issue is not writing good SQL — it is the lack of context and documentation.

Real warehouses are full of things no model can infer:

  • Which of the three revenue columns is the one the CFO means.
  • That "active user" was redefined in March, and every analysis crossing that date needs to know.
  • That test accounts, internal traffic, and one bulk-imported partner need excluding from everything.
  • Which joins are safe and which quietly double-count.

A human analyst carries this context in their head. It is tribal knowledge, accumulated over years — and it is precisely what a model does not have when it confidently writes syntactically perfect, semantically wrong SQL.

The unglamorous fix

The way to make AI analytics work is the same work that made human analysts effective: a data dictionary that defines every event and property, metric definitions written down and agreed, a tracking plan that keeps instrumentation honest, and documentation of the exceptions and caveats that make your data yours.

This used to be hygiene work — important, perpetually postponed. AI changes its economics: every hour spent documenting your data now pays out every time anyone (human or model) asks a question. The teams that will actually get self-serve analytics in the AI era are the ones doing the documentation work today.

Your turn

Want help building something like this in your business?