arrow
Return

A View-Oriented Skeleton Generation Method for Improving Multi-Table Text-to-SQL Translation Accuracy

delete2026-01-01
delete0
PRE
AI
H
Hongyong Zhou
田天 cover
田天 (Tian Tian) *
Z
Zihe Duan
Z
Zesan Liu
D
Dadi Wang
Z
Zhang, Xiaowu
DOI:10.1109/ACCESS.2026.3661085delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Recently, research on natural language to structured query (Text-to-SQL) has advanced rapidly, aiming to enable models to automatically translate natural language queries into executable SQL statements. When handling certain categories of multi-table queries, specifically those that can be abstracted as single-table or natural-join views, models must not only generate SQL syntax but also correctly infer join relationships. To substantially reduce generation difficulty and improve translation accuracy for these query types, this paper proposes a view-level semantic abstraction-based SQL generation method (View-SQL). It first generates an SQL skeleton on a pre-built view, after which a rule-based module completes the table names and the FROM clause to produce the final executable SQL statement. To achieve this, View-SQL introduces two collaborative processing paths. The first is the View Path (Text2SQLSkeleton), where a View Classifier determines which type of view the natural language query corresponds to, and a T5-based decoder generates the SQL skeleton for that view. The second is the Non-View Path (Text2SQL), which is invoked when a query cannot be mapped to any existing view. In this path, the model adopts BERT and multi-head attention mechanisms to select relevant tables and columns before generating the SQL statement. Through this hierarchical framework, View-SQL effectively reduces the complexity of multi-table inference. Experimental results demonstrate that on our validation split, since the Spider test set is not publicly available, View-SQL achieves accuracy improvements of 1.55% and 2.13% on the Spider-syn and Spider EM datasets, respectively.
Keywords:
Structured Query Language
Natural languages
Databases
Translation
Skeleton
Accuracy
Semantics
Syntactics
Decoding
Trees (botanical)
Text-to-SQL
view-oriented SQL generation
multi-table query
view classifier
SQL
multi-head attention

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

S
state grid corporation of china
Scholars:
2.1K
Papers: 754
Citations: 0