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

Olena Bogdanov, Yeunji Jung, Chandra Dhir, Pareekshitreddy Gaddam, Saurabh Jain +3 more
5/18/2026
cs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bogdanov2026agentnlq,
  title  = {AgentNLQ: A General-Purpose Agent for Natural Language to SQL},
  author = {Olena Bogdanov and Yeunji Jung and Chandra Dhir and Pareekshitreddy Gaddam and Saurabh Jain and Lakshmi Tumati and Vijay Parthasarathy and Anup Shirgaonkar},
  year   = {2026},
  eprint = {2605.19010},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.19010v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.19010.svg)](https://codeofpaper.com/paper/2605.19010)

Discussion