paper-with-me

홈 › Papers

AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Views

2026-04-08 · Minh Tam Pham, Trinh Pham, Tong Chen, Hongzhi Yin, Quoc Viet Hung Nguyen, Thanh Tam Nguyen arxiv

Text-to-SQL is the task of translating natural language queries into executable SQL for a given database, enabling non-expert users to access structured data without writing SQL manually. Despite rapid advances driven by large language models (LLMs), existing approaches still struggle with complex queries in real-world settings, where database schemas are large and questions require multi-step reasoning over many interrelated tables. In such cases, providing the full schema often exceeds the context window, while one-shot generation frequently produces non-executable SQL due to syntax errors and incorrect schema linking. To address these challenges, we introduce AV-SQL, a framework that decomposes complex Text-to-SQL into a pipeline of specialized LLM agents. Central to AV-SQL is the concept of agentic views: agent-generated Common Table Expressions (CTEs) that encapsulate intermediate query logic and filter relevant schema elements from large schemas. AV-SQL operates in three stages: (1) a rewriter agent compresses and clarifies the input query; (2) a view generator agent processes schema chunks to produce agentic views; and (3) a planner, generator, and revisor agent collaboratively compose these views into the final SQL query. Extensive experiments show that AV-SQL achieves 70.38% execution accuracy on the challenging Spider 2.0 benchmark, outperforming state-of-the-art baselines, while remaining competitive on standard datasets with 85.59% on Spider, 72.16% on BIRD and 63.78% on KaggleDBQA. Our source code is available at https://github.com/pminhtam/AV-SQL.

📄 PDF Abstract BibTeX arXiv:2604.07041

Code (0)

등록된 구현이 없습니다.

Tasks

Natural Language Queries

Results from the Paper

RankTaskDatasetModelMetrics
#6 Text-To-SQL SPIDER AV-SQL Exact Match Accuracy (in Dev): 72.16
#14 Text-To-SQL spider AV-SQL Execution Accuracy (Test): 85.59

Similar Papers 제목 키워드 기반

Can we Retrieve Everything All at Once? ARM: An Alignment-Oriented LLM-based Retrieval Method

2025-01-30 · Peter Baile Chen, Yi Zhang, Michael Cafarella, Dan Roth

Real-world open-domain questions can be complicated, particularly when answering them involves information from multiple information sources. LLMs have demonstrated impressive performance in decomposing complex tasks int…

AllRAGRetrieval

Decomposing Complex Queries for Tip-of-the-tongue Retrieval

2023-05-24 · Kevin Lin, Kyle Lo, Joseph E. Gonzalez, Dan Klein

When re-finding items, users who forget or are uncertain about identifying details often rely on creative strategies for expressing their information needs -- complex queries that describe content elements (e.g., book ch…

Retrieval

Query Attribute Modeling: Improving search relevance with Semantic Search and Meta Data Filtering

2025-08-06 · Karthik Menon, Batool Arhamna Haider, Muhammad Arham, Kanwal Mehreen 외 arxiv

This study introduces Query Attribute Modeling (QAM), a hybrid framework that enhances search precision and relevance by decomposing open text queries into structured metadata tags and semantic elements. QAM addresses tr…

Semantic Similarity

APWA: A Distributed Architecture for Parallelizable Agentic Workflows

2026-05-14 · Evan Rose, Tushin Mallick, Matthew D. Laws, Cristina Nita-Rotaru 외 arxiv

Autonomous multi-agent systems based on large language models (LLMs) have demonstrated remarkable abilities in independently solving complex tasks in a wide breadth of application domains. However, these systems hit crit…

GRASP: Graph Agentic Search over Propositions for Multi-hop Question Answering

2026-05-15 · Stockton Jenkins, Ramya Korlakai Vinayak, Junjie Hu arxiv

Agentic retrieval improves multi-hop question answering by giving language models autonomy to iteratively gather evidence. Recent work augments these systems with knowledge graphs for structured traversal, but this combi…

Multi-hop Question AnsweringPassage RetrievalKnowledge Graphs