Duoquest: A Dual-Specification System for Expressive SQL Queries
Not on the map. Why?
Abstract (arXiv)
Querying a relational database is difficult because it requires users to know both the SQL language and be familiar with the schema. On the other hand, many users possess enough domain familiarity or expertise to describe their desired queries by alternative means. For such users, two major alternatives to writing SQL are natural language interfaces (NLIs) and programming-by-example (PBE). Both of these alternatives face certain pitfalls: natural language queries (NLQs) are often ambiguous, even for human interpreters, while current PBE approaches require either low-complexity queries, user schema knowledge, exact example tuples from the user, or a closed-world assumption to be tractable. Consequently, we propose dual-specification query synthesis, which consumes both a NLQ and an optional PBE-like table sketch query that enables users to express varied levels of domain-specific knowledge. We introduce the novel dual-specification Duoquest system, which leverages guided partial query enumeration to efficiently explore the space of possible queries. We present results from user studies in which Duoquest demonstrates a 62.5% absolute increase in query construction accuracy over a state-of-the-art NLI and comparable accuracy to a PBE system on a more limited workload supported by the PBE system. In a simulation study on the prominent Spider benchmark, Duoquest demonstrates a >2x increase in top-1 accuracy over both NLI and PBE.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 16 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 1; 2024: 1; 2025: 3; 2026: 1.
7 papers.
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2021mRAT-SQL+GAP:A Portuguese Text-to-SQL Transformercited by 15
- 2025MaskSQL: Safeguarding Privacy for LLM-Based Text-to-SQL via Abstractioncited by 3
- 2024Towards Automated Cross-domain Exploratory Data Analysis through Large Language Modelscited by 2
- 2025MultiTEND: A Multilingual Benchmark for Natural Language to NoSQL Query Translationcited by 2
- 2025End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generationcited by 2
- 2026Database Context Compression for Text-to-SQL on Real-World Large Databasescited by 0
- 2026Database Context Compression for Text-to-SQL on Real-World Large Databases26 Jun 2026
- 2025MaskSQL: Safeguarding Privacy for LLM-Based Text-to-SQL via Abstraction27 Sep 2025
- 2025End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation8 Aug 2025
- 2025MultiTEND: A Multilingual Benchmark for Natural Language to NoSQL Query Translation16 Feb 2025
- 2024Towards Automated Cross-domain Exploratory Data Analysis through Large Language Models10 Dec 2024
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation29 Aug 2023
- 2021mRAT-SQL+GAP:A Portuguese Text-to-SQL Transformer7 Oct 2021