Uber's QueryGPT turns plain-English questions into SQL, cutting query time from ~10 to ~3 minutes
Uber built QueryGPT to write SQL from natural-language questions over its huge data warehouse. It started as a hackathon idea and grew into a tool with hundreds of daily users.
- Organization
- Uber
- Industry
- Ride-hailing & Delivery
- When
- Sep 2024
- Evidence
- Company reported
- Agents and tools
- QueryGPT (internal)RAGLLM
Reported outcome
Uber estimates a query that took about 10 minutes to write by hand now takes about 3 minutes; the limited release reached ~300 daily active users.
- ~10 → ~3 min (estimate)Time per query
- ~300Daily active users (limited release)
Caveats
Stated by the company that uses the agent (blog, earnings call, interview). Not independently audited.
- Uber calls the 10-to-3-minute figure a conservative estimate, not a measured before/after result.
- Some third-party write-ups extrapolate huge monthly hour savings. Those are not Uber's numbers.
What the agent does
An employee asks a question in English. QueryGPT finds relevant tables and example queries with vector search, then writes a SQL query. The user checks and runs it.
How it grew
It began as a proposal at Uber's internal Generative AI Hackdays in May 2023. Later versions split the job into smaller agents: one picks the business area, one picks tables, and one trims columns before writing SQL.
What to copy
- Group your tables by business area. Let the agent pick the area first.
- Store good example queries. They teach the model your naming and join patterns.
- Show the user which tables were chosen, so they can correct it early.
Starter prompt
Written by us, not by Uber.
Business area: {area}
Tables you may use (schemas below): {tables}
Example queries from this area: {examples}
Question: {question}
Write one {dialect} query. Use only the tables above.
Then explain in 3 bullets what it returns and which filters you assumed.
Sources
- QueryGPT – Natural Language to SQL Using Generative AI — Uber Engineering, Sep 2024
- Natural language to SQL query generation at scale — ZenML LLMOps Database, 2024
Added Oct 16, 2026 · Sources last checked Nov 16, 2026.
Get new use cases weekly
One short email. Sources included.
The newsletter is paused. Past issues stay in the archive.
Related use cases
Pinterest's text-to-SQL agent helps analysts find tables and write queries 35% faster
Pinterest reports 35% faster task completion for SQL writing, and first-shot acceptance rising from 20% to over 40%.
Uber's Genie answers on-call questions in Slack and saved ~13,000 engineering hours
70,000+ questions answered across 154 Slack channels, with an estimated 13,000 engineering hours saved.
GitHub's Qubot lets staff query the data warehouse in plain language, with hundreds of users
Hundreds of users running thousands of queries. In GitHub's experiments, curated context made Qubot three times faster at returning the right answer.