Data Ambiguity Strikes Back: How Documentation Improves GPT's Text-to-SQL
Not on the map. Why?
Abstract (arXiv)
Text-to-SQL allows experts to use databases without in-depth knowledge of them. However, real-world tasks have both query and data ambiguities. Most works on Text-to-SQL focused on query ambiguities and designed chat interfaces for experts to provide clarifications. In contrast, the data management community has long studied data ambiguities, but mainly addresses error detection and correction, rather than documenting them for disambiguation in data tasks. This work delves into these data ambiguities in real-world datasets. We have identified prevalent data ambiguities of value consistency, data coverage, and data granularity that affect tasks. We examine how documentation, originally made to help humans to disambiguate data, can help GPT-4 with Text-to-SQL tasks. By offering documentation on these, we found GPT-4's performance improved by 28.9%.
Key facts. Cited by 11 papers in the map (data through 13 Oct 2026). First posted on arXiv 28 Oct 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 5; 2025: 4; 2026: 2.
11 papers.
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Surveycited by 158
- 2024AMBROSIA: A Benchmark for Parsing Ambiguous Questions into Database Queriescited by 34
- 2025BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation for Large Language Models via Lens of Dynamic Interactionscited by 18
- 2025SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQLcited by 12
- 2024StatBot.Swiss: Bilingual Open Data Exploration in Natural Languagecited by 6
- 2025Query and Conquer: Execution-Guided SQL Generationcited by 5
- 2026PrepBench: How Far Are We from Natural-Language-Driven Data Preparation?cited by 3
- 2024Towards Green AI: Current status and future researchcited by 2
- 2024Towards Agentic Schema Refinementcited by 2
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligencecited by 2
- 2026Bootstrapping Semantic Layer from Execution for Text-to-SQLcited by 0
- 2026Bootstrapping Semantic Layer from Execution for Text-to-SQL4 Jun 2026
- 2026PrepBench: How Far Are We from Natural-Language-Driven Data Preparation?9 May 2026
- 2025BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation for Large Language Models via Lens of Dynamic Interactions6 Oct 2025
- 2025Toward Real-World Table Agents: Capabilities, Workflows, and Design Principles for LLM-based Table Intelligence14 Jul 2025
- 2025SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQL4 Jun 2025
- 2025Query and Conquer: Execution-Guided SQL Generation31 Mar 2025
- 2024Towards Agentic Schema Refinement25 Nov 2024
- 2024AMBROSIA: A Benchmark for Parsing Ambiguous Questions into Database Queries27 Jun 2024
- 2024StatBot.Swiss: Bilingual Open Data Exploration in Natural Language5 Jun 2024
- 2024Towards Green AI: Current status and future research1 May 2024
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Survey27 Feb 2024