Text to SQL is solved. What's next?
Originally published in December 2023. Updated in October 2026 with current benchmark figures and what the published enterprise builds have shown since; the argument is unchanged. For a scored comparison of today's products, see the best text-to-SQL tools for enterprise data warehouses.
Text to SQL is solved. Thanks to GPT-4, that debate is over. The real question now is what we tackle next to maximize its value.
GPT-4: the intelligence revolution
GPT-4 is not just another incremental improvement; it's a paradigm shift. Consider these SQL generation examples based on example e-commerce data in GetDot.
Example 1: What are the top 5 sold products last year?
To correctly answer this question, the agent needs to correctly:
- map business meaning to columns
- filter for the correct timeframe
- correctly aggregate a measure
- join 2 tables on the correct key
- apply a relevant filter based on the meaning of the tables
- order the calculated values
- limit the result set


Example 2: How has overall revenue grown in percentage between 2 quarters ago and last quarter?
To correctly answer this question, the agent additionally needs to:
- do multi-step calculations with CTEs
- aggregate by the right time dimension
- use the correct formula to calculate percentage difference


These aren't just anecdotes. On academic Text-2-SQL benchmarks, GPT-4 based approaches are blowing away more complex and specialized ones: in 2023, DAIL-SQL with GPT-4 reached 86.2% execution accuracy on the Spider benchmark (DAIL-SQL paper).
2026 update: on the harder BIRD benchmark, the best single model reached 80.04% in June 2026, Google Research's Gemini-SQL2 (The Decoder), against 92.96% for human experts (BIRD paper). Spider 2.0 and the caveats about benchmark errors are covered in our text-to-SQL tools guide.
Can we now just plug GPT-4 on our database and expect valuable and correct insights? No.
Great output requires good input
If you're not starting with a solid data model, you're setting yourself up to fail. Andy Grove (former CEO of Intel) made it clear: quality of output is determined by quality of input. In the world of data that means clean data models and managed data quality (a.k.a. data products).
2026 update: the companies that have since published their internal text-to-SQL builds found exactly this. LinkedIn's SQL Bot answered 9% of its benchmark questions correctly with table schemas alone and 53% with a knowledge graph of metadata, query logs and domain knowledge (LinkedIn's SQL Bot). Pinterest's table search hit rate went from 40% to 90% as it weighted table documentation (Pinterest's Querybook). On Adyen's DABstep benchmark, our own agent went from 10% to 90% on a 30-task slice through configuration, with the same model (our DABstep write-up).
Next challenges
1. Capture Implicit Knowledge
In an enterprise, the data model is a shifting target, and the knowledge of how to use it lives in people's heads. Without "training / knowledge curation", LLMs lack the context for the right interpretation and query. The next challenge is a curriculum and knowledge base that gets an LLM up to speed, like a new colleague.
2. Automation of Data Engineering and Semantic Data Models
In a similar vein, the engineering of the data model or semantic models (like Malloy, LookML and the dbt Semantic Layer, and today also Cube and Power BI semantic models) should be automated. Pipelines now have 100s or 1000s of managed objects and ever more connected systems. Our semantic layer guide covers where each of these stands in 2026.
Ideally we can just say: I want to track the 10 most important metrics for my B2B SaaS business, the data comes from Salesforce. Do the rest. We are still far from that, but it doesn't seem crazy to imagine it solved in the next 10 years.
2026 update: some pieces now exist. In Dot, changes to company-wide definitions become proposals an admin reviews (changelog), and Train tests Dot against trusted answers and proposes fixes as a diff you merge (changelog). The full "do the rest" version is still ahead.
3. Visualizations, Interpretation and Actions
There is a ton of upside in making the output layer of analytics more intelligent. How much time is spent editing colors and chart configurations in a Tableau dashboard that in 4/5 cases will never get looked at again? And we don't just want visualizations; we want interpretation. What does the data mean for our business? What actions should be taken? Maybe even trigger some of these actions.
The CEO of the future is an AI.
Conclusion: test AI and invest in good information

Text to SQL is no longer the frontier. Two actions will make this technology mature:
Test AI Agents: Don't take my word for it; test GPT-4 and its successors on your own use cases.
2026 update: in practice, testing now means an evaluation set of 30 to 50 real questions with answers you trust, run again whenever the model or your definitions change; our text-to-SQL tools guide shows how to build one.
Invest in Fundamentals: It's not glamorous, but quality data and solid data models are the bedrock all these advances rest on.
Related reading:
If you want to see how far your data models take you, try Dot for free.
Rick Radewagen
Rick is a co-founder of Dot, on a mission to make data accessible to everyone. When he's not building AI-powered analytics, you'll find him obsessing over well-arranged pixels and surprising himself by learning new languages.