Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Tian, Yuan, Zhang, Zheng, Ning, Zheng, Li, Toby Jia-Jun, Kummerfeld, Jonathan K., Zhang, Tianyi
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2305.07372
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913186244984832
author Tian, Yuan
Zhang, Zheng
Ning, Zheng
Li, Toby Jia-Jun
Kummerfeld, Jonathan K.
Zhang, Tianyi
author_facet Tian, Yuan
Zhang, Zheng
Ning, Zheng
Li, Toby Jia-Jun
Kummerfeld, Jonathan K.
Zhang, Tianyi
contents Relational databases play an important role in business, science, and more. However, many users cannot fully unleash the analytical power of relational databases, because they are not familiar with database languages such as SQL. Many techniques have been proposed to automatically generate SQL from natural language, but they suffer from two issues: (1) they still make many mistakes, particularly for complex queries, and (2) they do not provide a flexible way for non-expert users to validate and refine incorrect queries. To address these issues, we introduce a new interaction mechanism that allows users to directly edit a step-by-step explanation of a query to fix errors. Our experiments on multiple datasets, as well as a user study with 24 participants, demonstrate that our approach can achieve better performance than multiple SOTA approaches. Our code and datasets are available at https://github.com/magic-YuanTian/STEPS.
format Preprint
id arxiv_https___arxiv_org_abs_2305_07372
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Interactive Text-to-SQL Generation via Editable Step-by-Step Explanations
Tian, Yuan
Zhang, Zheng
Ning, Zheng
Li, Toby Jia-Jun
Kummerfeld, Jonathan K.
Zhang, Tianyi
Databases
Computation and Language
I.2.7
Relational databases play an important role in business, science, and more. However, many users cannot fully unleash the analytical power of relational databases, because they are not familiar with database languages such as SQL. Many techniques have been proposed to automatically generate SQL from natural language, but they suffer from two issues: (1) they still make many mistakes, particularly for complex queries, and (2) they do not provide a flexible way for non-expert users to validate and refine incorrect queries. To address these issues, we introduce a new interaction mechanism that allows users to directly edit a step-by-step explanation of a query to fix errors. Our experiments on multiple datasets, as well as a user study with 24 participants, demonstrate that our approach can achieve better performance than multiple SOTA approaches. Our code and datasets are available at https://github.com/magic-YuanTian/STEPS.
title Interactive Text-to-SQL Generation via Editable Step-by-Step Explanations
topic Databases
Computation and Language
I.2.7
url https://arxiv.org/abs/2305.07372