paper-with-me

홈 › Papers

E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQL

2024-09-25 · Hasan Alp Caferoğlu, Özgür Ulusoy

Translating Natural Language Queries into Structured Query Language (Text-to-SQL or NLQ-to-SQL) is a critical task extensively studied by both the natural language processing and database communities, aimed at providing a natural language interface to databases (NLIDB) and lowering the barrier for non-experts. Despite recent advancements made through the use of Large Language Models (LLMs), significant challenges remain. These include handling complex database schemas, resolving ambiguity in user queries, and generating SQL queries with intricate structures that accurately reflect the user's intent. In this work, we introduce E-SQL, a novel pipeline specifically designed to address these challenges through direct schema linking and candidate predicate augmentation. E-SQL enhances the natural language query by incorporating relevant database items (i.e., tables, columns, and values) and conditions directly into the question and SQL construction plan, bridging the gap between the query and the database structure. The pipeline leverages candidate predicate augmentation to mitigate erroneous or incomplete predicates in generated SQLs. Comprehensive evaluations on the BIRD benchmark illustrate that E-SQL achieves competitive performance, particularly excelling in complex queries with a 66.29% execution accuracy on the test set. A further observation from our experiments reveals that incorporating schema filtering into the translation pipeline does not have a positive impact on performance when the most advanced proprietary LLMs are used. Additionally, our experiments with small LLMs highlight the importance and positive impact of enriched questions on their performance. Without fine-tuning, single-prompt SQL generation using enriched questions with DeepSeek Coder 7B Instruct 1.5v achieves 56.45% execution accuracy on the BIRD development set.

📄 PDF Abstract BibTeX arXiv:2409.16751

Code (1)

HasanAlpCaferoglu/E-SQL 공식 구현

Tasks

Natural Language QueriesText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Rethinking Schema Linking: A Context-Aware Bidirectional Retrieval Approach for Text-to-SQL

2025-10-16 · Md Mahadi Hasan Nahid, Davood Rafiei, Weiwei Zhang, Yong Zhang arxiv

Schema linking -- the process of aligning natural language questions with database schema elements -- is a critical yet underexplored component of Text-to-SQL systems. While recent methods have focused primarily on impro…

Keyphrase ExtractionKeyword Extraction

SQL-to-Schema Enhances Schema Linking in Text-to-SQL

2024-05-15 · Sun Yang, Qiong Su, Zhishuai Li, Ziyue Li 외

In sophisticated existing Text-to-SQL methods exhibit errors in various proportions, including schema-linking errors (incorrect columns, tables, or extra columns), join errors, nested errors, and group-by errors. Consequ…

Text to SQLText-To-SQL

Semantic Enhanced Text-to-SQL Parsing via Iteratively Learning Schema Linking Graph

2022-08-08 · Aiwei Liu, Xuming Hu, Li Lin, Lijie Wen

The generalizability to new databases is of vital importance to Text-to-SQL systems which aim to parse human utterances into SQL statements. Existing works achieve this goal by leveraging the exact matching method to ide…

Graph LearningSQL ParsingText to SQLText-To-SQL

SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQL

2021-11-01 · NeurIPS 2021 12 · Ruichu Cai, Jinjie Yuan, Boyan Xu, Zhifeng Hao

The Text-to-SQL task, aiming to translate the natural language of the questions into SQL queries, has drawn much attention recently. One of the most challenging problems of Text-to-SQL is how to generalize the trained mo…

Semantic ParsingText to SQLText-To-SQL

Schema-R1: A reasoning training approach for schema linking in Text-to-SQL Task

2025-06-13 · Wuzhenghong Wen, Su Pan, Yuwei Sun

Schema linking is a critical step in Text-to-SQL task, aiming to accurately predict the table names and column names required for the SQL query based on the given question. However, current fine-tuning approaches for sch…

reinforcement-learningReinforcement LearningText to SQLText-To-SQL