Context-Aware SQL Query Generation: Enhancing Natural Language Interaction & Query Correlation in Relational Database

In the era of data-driven decision-making, efficiently interacting with large databases is crucial for organizations across various sectors. Traditional SQL query generation methods often struggle with the complexity and variability of user queries, resulting in inefficiencies and inaccuracies. This paper presents a novel approach to leveraging a large language model (LLM) for dynamic SQL query generation; by utilizing advanced context-aware prompting techniques, the system effectively understands user intents in natural language. The system enhances the accuracy of subsequent queries, significantly improving data retrieval efficiency. The proposed framework supports dynamic relational database interactions, allowing seamless execution of generating queries while maintaining contextual continuity across user sessions. This enriches the user experience by providing coherent responses and accessible results. Although existing methodologies, such as RSQLG and TypeSQL have made strides in query automation, they face limitations, including insufficient support for complex SQL operations and challenges with multilingual commands. The system addresses these issues through advanced LLM techniques, the model's architecture, training methodologies, and various database management practices, and the findings bridge the gap between non-technical users and complex database systems, improving data accessibility and informed decision-making.

Authors

Publication Details

Published
2025-02-21
DOI
https://doi.org/10.1109/icitiit64777.2025.11041116
Primary Topic
Service-Oriented Architecture and Web Services
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Context-Aware SQL Query Generation: Enhancing Natural Language Interaction & Query Correlation in Relational Database

R. Srimathi, M. Selvi, M. Meenakshi, A Aravindhan
Service-Oriented Architecture and Web Services
article

Context-Aware SQL Query Generation: Enhancing Natural Language Interaction & Query Correlation in Relational Database

R. Srimathi, M. Selvi, M. Meenakshi, A Aravindhan
article en

Abstract

In the era of data-driven decision-making, efficiently interacting with large databases is crucial for organizations across various sectors. Traditional SQL query generation methods often struggle with the complexity and variability of user queries, resulting in inefficiencies and inaccuracies. This paper presents a novel approach to leveraging a large language model (LLM) for dynamic SQL query generation; by utilizing advanced context-aware prompting techniques, the system effectively understands user intents in natural language. The system enhances the accuracy of subsequent queries, significantly improving data retrieval efficiency. The proposed framework supports dynamic relational database interactions, allowing seamless execution of generating queries while maintaining contextual continuity across user sessions. This enriches the user experience by providing coherent responses and accessible results. Although existing methodologies, such as RSQLG and TypeSQL have made strides in query automation, they face limitations, including insufficient support for complex SQL operations and challenges with multilingual commands. The system addresses these issues through advanced LLM techniques, the model's architecture, training methodologies, and various database management practices, and the findings bridge the gap between non-technical users and complex database systems, improving data accessibility and informed decision-making.

Quality Education
Openalex Percentile: Top 78%
Service-Oriented Architecture and Web Services
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.

Context-Aware SQL Query Generation: Enhancing Natural Language Interaction & Query Correlation in Relational Database — R. Srimathi, M. Selvi, et al. · (2025) | TGRS Research Map | TGRS