Most Text-to-SQL demos look impressive on a 5-table toy database and fall apart the moment they meet an enterprise data warehouse. The bottleneck isn't SQL syntax—it's context bloat, ambiguous domain boundaries, and tribal schema knowledge .
In their engineering deep dive, QueryGPT – Natural Language to SQL Using Generative AI , Uber shared how they evolved a 2023 hackathon prototype through 20+ iterations into a production system serving ~1.2 million interactive queries per month (with Operations alone driving ~36% of volume), cutting average query authoring time from ~10 minutes down to ~3 minutes .
Here is an architectural breakdown of why naive RAG failed at Uber's scale—and the multi-agent pipeline they built to fix it.
1.…