AgentNLQ: A General-Purpose Agent for Natural Language to SQL

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Bogdanov, Olena, Jung, Yeunji, Dhir, Chandra, Gaddam, Pareekshitreddy, Jain, Saurabh, Tumati, Lakshmi, Parthasarathy, Vijay, Shirgaonkar, Anup
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909055072600064
author Bogdanov, Olena
Jung, Yeunji
Dhir, Chandra
Gaddam, Pareekshitreddy
Jain, Saurabh
Tumati, Lakshmi
Parthasarathy, Vijay
Shirgaonkar, Anup
author_facet Bogdanov, Olena
Jung, Yeunji
Dhir, Chandra
Gaddam, Pareekshitreddy
Jain, Saurabh
Tumati, Lakshmi
Parthasarathy, Vijay
Shirgaonkar, Anup
contents Natural language to SQL (NL2SQL) conversion is an important problem for researchers and enterprises due to the ubiquitous importance of relational databases in broad-ranging practical problems. Despite the rapid advancements in the capabilities of LLMs, NL2SQL has not reached parity in accuracy with human expert SQL writers, hence needing additional improvements in NL2SQL algorithms. This study presents a new multi-agent method for NL2SQL that achieves 78.1% semantic accuracy on the BIg Bench for LaRge-scale Database (BIRD) benchmark. Our method leverages a semantically enriched representation of user-provided schema, adds user-provided business rules, and produces accurate SQL queries. The main contributions of this study are (a) We designed an optimized new orchestrator in a multi-agent solution that uses LLMs to plan, orchestrate, reflect, and self-correct to generate accurate SQL queries, (b) We developed an advanced schema enrichment method that creates context-aware metadata to improve accuracy, and (c) We demonstrated the accuracy and generalizability of the method across different domains and datasets by evaluating it on the BIRD-SQL benchmark.
format Preprint
id arxiv_https___arxiv_org_abs_2605_19010
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle AgentNLQ: A General-Purpose Agent for Natural Language to SQL
Bogdanov, Olena
Jung, Yeunji
Dhir, Chandra
Gaddam, Pareekshitreddy
Jain, Saurabh
Tumati, Lakshmi
Parthasarathy, Vijay
Shirgaonkar, Anup
Artificial Intelligence
Natural language to SQL (NL2SQL) conversion is an important problem for researchers and enterprises due to the ubiquitous importance of relational databases in broad-ranging practical problems. Despite the rapid advancements in the capabilities of LLMs, NL2SQL has not reached parity in accuracy with human expert SQL writers, hence needing additional improvements in NL2SQL algorithms. This study presents a new multi-agent method for NL2SQL that achieves 78.1% semantic accuracy on the BIg Bench for LaRge-scale Database (BIRD) benchmark. Our method leverages a semantically enriched representation of user-provided schema, adds user-provided business rules, and produces accurate SQL queries. The main contributions of this study are (a) We designed an optimized new orchestrator in a multi-agent solution that uses LLMs to plan, orchestrate, reflect, and self-correct to generate accurate SQL queries, (b) We developed an advanced schema enrichment method that creates context-aware metadata to improve accuracy, and (c) We demonstrated the accuracy and generalizability of the method across different domains and datasets by evaluating it on the BIRD-SQL benchmark.
title AgentNLQ: A General-Purpose Agent for Natural Language to SQL
topic Artificial Intelligence
url https://arxiv.org/abs/2605.19010