GenSql: A Generative Natural Language Interface to Database Systems
Authors:
- 1 April 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 3603-3606
Abstract
To make databases more accessible to a much broader audience of non-technical users, many applications, such as chatbots and search engines, have developed a natural language (NL) interface for the underlying databases (NLIDB). With the advances in machine learning techniques, most recent research employs language translation models to build NLIDB systems. In this demonstration, we introduce GenSql, a generative NLIDB system that enables users to query databases using NL. Unlike most existing NLIDB systems that attempt to leverage a generalized language translation model to convert NL to SQL queries (NL2SQL) for any database, GenSql utilizes a set of sample queries to capture the specific structure and semantics of a given database and thus to provide more accurate translation results. The underlying NL2SQL model in GenSql is a novel generate-and-rank model named Gar designed by the authors, which first generates a set of generalized SQL queries with corresponding NL expressions from the given sample queries, and ranks the NL expressions to get the best matching one, and hence the SQL query. This demonstration shows the effectiveness of GenSql, especially in answering complex queries, which proves its utility in practice.Keywords
This publication has 15 references indexed in Scilit:
- Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing2020
- RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers2020
- Deeper Text Understanding for IR with Contextual Neural Language Modeling2019
- Bridging the Semantic Gap with SQL Query Logs in Natural Language Interfaces to Databases2019
- Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task2018
- ATHENAProceedings of the VLDB Endowment, 2016
- Summarizing Source Code using a Neural Attention Model2016
- Constructing an interactive natural language interface for relational databasesProceedings of the VLDB Endowment, 2014
- Explaining structured queries in natural language2010
- Synthesizing structured text from logical database subsets2008