Task-Driven Neural Natural Language Interface to Database

Yuquan Yang, Qifan Zhang, Junjie Yao*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Natural language querying offers an intuitive and user-friendly interface. A Natural Language Interface over databases, often termed as “Text-to-SQL”, involves translating a query posed in natural language into a corresponding SQL query for structured databases. A significant number of recent methodologies, anchored in the pre-trained language model and encode-decode paradigms, have been developed to address this task. Yet, existing approaches often grapple with generating accurate SQL queries, especially in scenarios that involve multiple values and intricate column calculations. In this study, we present a task-driven Text-to-SQL model. This model breaks down the SQL prediction process into specific sub-tasks based on the unique task requirements of the query. Specifically, we amalgamate structure prediction, value extraction, and column relationship prediction into a cohesive workflow. The model is designed to construct target SQL queries incrementally, with each sub-task building upon the outcomes of its predecessors. Additionally, we introduce a novel filtering mechanism to refine and re-order candidates produced during the beam search phase. We substantiate the efficacy of our model using public datasets, showcasing its adeptness in both English and Chinese contexts.

Original languageEnglish
Title of host publicationWeb Information Systems Engineering – WISE 2023 - 24th International Conference, Proceedings
EditorsFeng Zhang, Hua Wang, Mahmoud Barhamgi, Lu Chen, Rui Zhou
PublisherSpringer Science and Business Media Deutschland GmbH
Pages659-673
Number of pages15
ISBN (Print)9789819972531
DOIs
StatePublished - 2023
Event24th International Conference on Web Information Systems Engineering, WISE 2023 - Melbourne, Australia
Duration: 25 Oct 202327 Oct 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14306 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference24th International Conference on Web Information Systems Engineering, WISE 2023
Country/TerritoryAustralia
CityMelbourne
Period25/10/2327/10/23

Keywords

  • Semantic Parsing
  • Text-to-SQL

Fingerprint

Dive into the research topics of 'Task-Driven Neural Natural Language Interface to Database'. Together they form a unique fingerprint.

Cite this