Papers
arxiv:2406.01265

The Dawn of Natural Language to SQL: Are We Fully Ready?

Published on Jun 3, 2024
Authors:
,
,
,
,

Abstract

Translating users' natural language questions into SQL queries (i.e., NL2SQL) significantly lowers the barriers to accessing relational databases. The emergence of Large Language Models has introduced a novel paradigm in NL2SQL tasks, enhancing capabilities dramatically. However, this raises a critical question: Are we fully prepared to deploy NL2SQL models in production? To address the posed questions, we present a multi-angle NL2SQL evaluation framework, <PRE_TAG>NL2SQL360</POST_TAG>, to facilitate the design and test of new <PRE_TAG>NL2SQL methods</POST_TAG> for researchers. Through <PRE_TAG>NL2SQL360</POST_TAG>, we conduct a detailed comparison of leading <PRE_TAG>NL2SQL methods</POST_TAG> across a range of application scenarios, such as different data domains and SQL characteristics, offering valuable insights for selecting the most appropriate <PRE_TAG>NL2SQL methods</POST_TAG> for specific needs. Moreover, we explore the NL2SQL design space, leveraging <PRE_TAG>NL2SQL360</POST_TAG> to automate the identification of an optimal NL2SQL solution tailored to user-specific needs. Specifically, <PRE_TAG>NL2SQL360</POST_TAG> identifies an effective NL2SQL method, SuperSQL, distinguished under the Spdier dataset using the execution accuracy metric. Remarkably, SuperSQL achieves competitive performance with execution accuracy of 87% and 62.66% on the Spider and BIRD test sets, respectively.

Community

Sign up or log in to comment

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2406.01265 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2406.01265 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2406.01265 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.