Enhancing NL2SQL Conversion: Addressing Schema and Temporal Challenges with a Hierarchical Tree Structure

This paper dives deeper into the field of Natural Language to Structured Query Language conversion (NL2SQL). Using the widely accepted NL2SQL agent provided with the Spider-2 dataset, it aims to identify basic and common issues present in most NL2SQL agents. Specifically, it evaluates the performance of the original Spider-2 agent and the Spider-2 + DIN-SQL model on the Spider-2 Snow dataset. Out of the 547 results, the thesis manually examines a subset with a statistically significant sample size. The results reveal that current models struggle to understand semi-structured variable names, such as column names in schemas and table names. The performance is abysmal in the absence of relevant illustrative files. Even when such files are available, the agent often fails to correctly interpret the meaning of file names, leading to the selection of incorrect files or tables that hold the data. This study also proposes potential directions for improvement, particularly in cases where file or table names involve temporal elements, such as dates or times. Based on experiments, the thesis believes incorporating a hierarchical tree structure could offer a promising solution.

Authors

Institutions

Publication Details

Journal
Applied and Computational Engineering
Published
2025-05-29
DOI
https://doi.org/10.54254/2755-2721/2025.po23472
Primary Topic
Cloud Computing and Resource Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing NL2SQL Conversion: Addressing Schema and Temporal Challenges with a Hierarchical Tree Structure

Yuxun Ren
Applied and Computational Engineering
Cloud Computing and Resource Management
article

Enhancing NL2SQL Conversion: Addressing Schema and Temporal Challenges with a Hierarchical Tree Structure

Yuxun Ren
article en

Abstract

This paper dives deeper into the field of Natural Language to Structured Query Language conversion (NL2SQL). Using the widely accepted NL2SQL agent provided with the Spider-2 dataset, it aims to identify basic and common issues present in most NL2SQL agents. Specifically, it evaluates the performance of the original Spider-2 agent and the Spider-2 + DIN-SQL model on the Spider-2 Snow dataset. Out of the 547 results, the thesis manually examines a subset with a statistically significant sample size. The results reveal that current models struggle to understand semi-structured variable names, such as column names in schemas and table names. The performance is abysmal in the absence of relevant illustrative files. Even when such files are available, the agent often fails to correctly interpret the meaning of file names, leading to the selection of incorrect files or tables that hold the data. This study also proposes potential directions for improvement, particularly in cases where file or table names involve temporal elements, such as dates or times. Based on experiments, the thesis believes incorporating a hierarchical tree structure could offer a promising solution.

Applied and Computational EngineeringVol. 157(1)
Hong Kong University of Science and Technology (HK)
Openalex Percentile: Top 83%
Cloud Computing and Resource Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Enhancing NL2SQL Conversion: Addressing Schema and Temporal Challenges with a Hierarchical Tree Structure — Yuxun Ren · Applied and Computational Engineering (2025) | TGRS Research Map | TGRS