SQLGenie: A Practical LLM based System for Reliable and Efficient SQL Generation

Large Language Models (LLMs) enable natural language to SQL conversion, allowing users to query databases without SQL expertise.However, generating accurate, efficient queries is challenging due to ambiguous intent, domain knowledge requirements, and database constraints.Extensive reasoning improves SQL quality but increases computational costs and latency.We propose SQLGenie, a practical system for reliable SQL generation.It consists of three components: (1) Table Onboarder, which analyzes new tables, optimizes indexing, partitions data, identifies foreign key relationships, and stores schema details for SQL generation; (2) SQL Generator, an LLMbased system producing accurate SQL; and (3) Feedback Augmentation, which filters correct query-SQL pairs, leverages multiple LLM agents for complex SQL, and stores verified examples.SQLGenie achieves state-of-the-art performance on public benchmarks (92.8% execution accuracy on WikiSQL, 82.1% on Spider, 73.8% on BIRD) and internal datasets, surpassing the best single-LLM baseline by 21.5% and the strongest pipeline competitor by 5.3%.Its hybrid variant optimally balances accuracy and efficiency, reducing generation time by 64% compared to traditional multi-LLM approaches while maintaining competitive accuracy.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-industry.71
Primary Topic
Advanced Computational Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SQLGenie: A Practical LLM based System for Reliable and Efficient SQL Generation

Anubhav Jain, Promod Yenigalla, Pushpendu Ghosh
Advanced Computational Techniques and Applications
article

SQLGenie: A Practical LLM based System for Reliable and Efficient SQL Generation

Anubhav Jain, Promod Yenigalla, Pushpendu Ghosh
article en

Abstract

Large Language Models (LLMs) enable natural language to SQL conversion, allowing users to query databases without SQL expertise.However, generating accurate, efficient queries is challenging due to ambiguous intent, domain knowledge requirements, and database constraints.Extensive reasoning improves SQL quality but increases computational costs and latency.We propose SQLGenie, a practical system for reliable SQL generation.It consists of three components: (1) Table Onboarder, which analyzes new tables, optimizes indexing, partitions data, identifies foreign key relationships, and stores schema details for SQL generation; (2) SQL Generator, an LLMbased system producing accurate SQL; and (3) Feedback Augmentation, which filters correct query-SQL pairs, leverages multiple LLM agents for complex SQL, and stores verified examples.SQLGenie achieves state-of-the-art performance on public benchmarks (92.8% execution accuracy on WikiSQL, 82.1% on Spider, 73.8% on BIRD) and internal datasets, surpassing the best single-LLM baseline by 21.5% and the strongest pipeline competitor by 5.3%.Its hybrid variant optimally balances accuracy and efficiency, reducing generation time by 64% compared to traditional multi-LLM approaches while maintaining competitive accuracy.

Amazon (United States) (US), Amazon (Germany) (DE)
Openalex Percentile: Top 90%
Advanced Computational Techniques and Applications
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.