Bridging the Semantic Gap with SQL Query Logs in Natural Language Interfaces to Databases
Not on the map. Why?
Abstract (arXiv)
A critical challenge in constructing a natural language interface to database (NLIDB) is bridging the semantic gap between a natural language query (NLQ) and the underlying data. Two specific ways this challenge exhibits itself is through keyword mapping and join path inference. Keyword mapping is the task of mapping individual keywords in the original NLQ to database elements (such as relations, attributes or values). It is challenging due to the ambiguity in mapping the user's mental model and diction to the schema definition and contents of the underlying database. Join path inference is the process of selecting the relations and join conditions in the FROM clause of the final SQL query, and is difficult because NLIDB users lack the knowledge of the database schema or SQL and therefore cannot explicitly specify the intermediate tables and joins needed to construct a final SQL query. In this paper, we propose leveraging information from the SQL query log of a database to enhance the performance of existing NLIDBs with respect to these challenges. We present a system Templar that can be used to augment existing NLIDBs. Our extensive experimental evaluation demonstrates the effectiveness of our approach, leading up to 138% improvement in top-1 accuracy in existing NLIDBs by leveraging SQL query log information.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). First posted on arXiv 31 Jan 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 3; 2024: 3; 2025: 4; 2026: 1.
15 papers.
Sort:
By area:
- 2023Data-centric Artificial Intelligence: A Surveycited by 202
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
- 2024SQLucid: Grounding Natural Language Database Queries with Interactive Explanationscited by 10
- 2022Diverse Parallel Data Synthesis for Cross-Database Adaptation of Text-to-SQL Parserscited by 7
- 2025Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotationcited by 6
- 2021GP: Context-free Grammar Pre-training for Text-to-SQL Parserscited by 5
- 2021DBTagger: Multi-Task Learning for Keyword Mapping in NLIDBs Using Bi-Directional Recurrent Neural Networkscited by 3
- 2024NL2KQL: From Natural Language to Kusto Querycited by 3
- 2023SPSQL: Step-by-step Parsing Based Framework for Text-to-SQL Generationcited by 2
- 2022xDBTagger: Explainable Natural Language Interface to Databases Using Keyword Mappings and Schema Graphcited by 1
- 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translationcited by 1
3 more
- 2026Database Context Compression for Text-to-SQL on Real-World Large Databases26 Jun 2026
- 2025Effective and Efficient Threat Hunting with Small Language Models7 Dec 2025
- 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translation17 Nov 2025
- 2025Query Logs Analytics: A Aystematic Literature Review19 Aug 2025
- 2025Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotation21 Feb 2025
- 2024SQLucid: Grounding Natural Language Database Queries with Interactive Explanations10 Sep 2024
- 2024NL2KQL: From Natural Language to Kusto Query3 Apr 2024
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translation27 Feb 2024
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Survey27 Oct 2023
- 2023SPSQL: Step-by-step Parsing Based Framework for Text-to-SQL Generation10 May 2023
- 2023Data-centric Artificial Intelligence: A Survey17 Mar 2023
- 2022Diverse Parallel Data Synthesis for Cross-Database Adaptation of Text-to-SQL Parsers29 Oct 2022
3 more
- 2022xDBTagger: Explainable Natural Language Interface to Databases Using Keyword Mappings and Schema Graph7 Oct 2022
- 2021GP: Context-free Grammar Pre-training for Text-to-SQL Parsers25 Jan 2021
- 2021DBTagger: Multi-Task Learning for Keyword Mapping in NLIDBs Using Bi-Directional Recurrent Neural Networks11 Jan 2021
- 2023Data-centric Artificial Intelligence: A Surveycited by 202
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
- 2024SQLucid: Grounding Natural Language Database Queries with Interactive Explanationscited by 10
- 2025Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotationcited by 6
- 2021GP: Context-free Grammar Pre-training for Text-to-SQL Parserscited by 5
- 2021DBTagger: Multi-Task Learning for Keyword Mapping in NLIDBs Using Bi-Directional Recurrent Neural Networkscited by 3
- 2024NL2KQL: From Natural Language to Kusto Querycited by 3
- 2023SPSQL: Step-by-step Parsing Based Framework for Text-to-SQL Generationcited by 2
- 2022xDBTagger: Explainable Natural Language Interface to Databases Using Keyword Mappings and Schema Graphcited by 1
- 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translationcited by 1
- 2025Effective and Efficient Threat Hunting with Small Language Modelscited by 1
12 most cited of 14 All 14 (JSON)
- 2026Database Context Compression for Text-to-SQL on Real-World Large Databases26 Jun 2026
- 2025Effective and Efficient Threat Hunting with Small Language Models7 Dec 2025
- 2025Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translation17 Nov 2025
- 2025Query Logs Analytics: A Aystematic Literature Review19 Aug 2025
- 2025Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotation21 Feb 2025
- 2024SQLucid: Grounding Natural Language Database Queries with Interactive Explanations10 Sep 2024
- 2024NL2KQL: From Natural Language to Kusto Query3 Apr 2024
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translation27 Feb 2024
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Survey27 Oct 2023
- 2023SPSQL: Step-by-step Parsing Based Framework for Text-to-SQL Generation10 May 2023
- 2023Data-centric Artificial Intelligence: A Survey17 Mar 2023
- 2022xDBTagger: Explainable Natural Language Interface to Databases Using Keyword Mappings and Schema Graph7 Oct 2022
12 newest of 14 All 14 (JSON)