A Cost-Aware Agentic Architecture for NL-to-SQL over Nested Enterprise Schemas, with a New Benchmark

📅 2026-09-03
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
本文针对企业级复杂模式下的自然语言转SQL问题,提出了一种成本感知的代理架构及新的基准测试DevRev NL2SQL。
📝 Abstract
Natural-language-to-SQL systems have ad- vanced rapidly on academic benchmarks, yet production enterprise schemas exhibit graph- like, semi-structured, deeply nested structure that current benchmarks do not measure. We make two complementary contributions. First, we introduce the DevRev NL2SQL bench- mark: 900 execution-verified queries with nested-type and link-graph structure, accom- panied by the Semantic Depth Score (SDS), a schema-agnostic rubric for analytical reasoning depth. Second, we present a cost-aware single- generation agentic architecture whose schema- selection, metadata-retrieval, and error-repair components are designed for the requirements this regime imposes. On the DevRev NL2SQL benchmark the system attains 91.7% answer correctness, a margin of 54.6 percentage points over the next-best baseline; on the Spider 2.0 Snowflake public dataset, it is competitive with leading systems at a single-generation operating point.
Problem

Research questions and friction points this paper is trying to address.

Natural-language-to-SQL
Enterprise Schemas
Nested Structure
Innovation

Methods, ideas, or system contributions that make the work stand out.

cost-aware agentic architecture
nested enterprise schemas
DevRev NL2SQL benchmark
Semantic Depth Score (SDS)
Y
Yoga Sri Varshan Varadharajan
University of Texas at Austin
A
Ajay Yadav
University of Texas at Austin
R
Ritesh Goru
DevRev, USA
P
Prateek Chaudhury
DevRev, Bengaluru, India
Constantine Caramanis
Constantine Caramanis
Professor of Electrical and Computer Engineering, UT Austin
OptimizationStatisticsMachine LearningNetworksAlgorithms
P
Prateek Jain
DevRev, USA
D
Divyateja Pasupuleti
DevRev, Bengaluru, India
S
Sunil Kumar Pandey
DevRev, Bengaluru, India