TY - GEN
T1 - Task-Driven Neural Natural Language Interface to Database
AU - Yang, Yuquan
AU - Zhang, Qifan
AU - Yao, Junjie
N1 - Publisher Copyright:
© 2023, The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
PY - 2023
Y1 - 2023
N2 - 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.
AB - 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.
KW - Semantic Parsing
KW - Text-to-SQL
UR - https://www.scopus.com/pages/publications/85176008623
U2 - 10.1007/978-981-99-7254-8_51
DO - 10.1007/978-981-99-7254-8_51
M3 - 会议稿件
AN - SCOPUS:85176008623
SN - 9789819972531
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 659
EP - 673
BT - Web Information Systems Engineering – WISE 2023 - 24th International Conference, Proceedings
A2 - Zhang, Feng
A2 - Wang, Hua
A2 - Barhamgi, Mahmoud
A2 - Chen, Lu
A2 - Zhou, Rui
PB - Springer Science and Business Media Deutschland GmbH
T2 - 24th International Conference on Web Information Systems Engineering, WISE 2023
Y2 - 25 October 2023 through 27 October 2023
ER -