OraPlan-SQL: A Planning-Centric Framework for Complex Bilingual NL2SQL Reasoning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liu, Marianne Menglin, Somayajula, Sai Ashish, Shah, Syed Fahad Allam, Ravi, Sujith, Roth, Dan
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914117704482816
author Liu, Marianne Menglin
Somayajula, Sai Ashish
Shah, Syed Fahad Allam
Ravi, Sujith
Roth, Dan
author_facet Liu, Marianne Menglin
Somayajula, Sai Ashish
Shah, Syed Fahad Allam
Ravi, Sujith
Roth, Dan
contents We present OraPlan-SQL, our system for the Archer NL2SQL Evaluation Challenge 2025, a bilingual benchmark requiring complex reasoning such as arithmetic, commonsense, and hypothetical inference. OraPlan-SQL ranked first, exceeding the second-best system by more than 6% in execution accuracy (EX), with 55.0% in English and 56.7% in Chinese, while maintaining over 99% SQL validity (VA). Our system follows an agentic framework with two components: Planner agent that generates stepwise natural language plans, and SQL agent that converts these plans into executable SQL. Since SQL agent reliably adheres to the plan, our refinements focus on the planner. Unlike prior methods that rely on multiple sub-agents for planning and suffer from orchestration overhead, we introduce a feedback-guided meta-prompting strategy to refine a single planner. Failure cases from a held-out set are clustered with human input, and an LLM distills them into corrective guidelines that are integrated into the planner's system prompt, improving generalization without added complexity. For the multilingual scenario, to address transliteration and entity mismatch issues, we incorporate entity-linking guidelines that generate alternative surface forms for entities and explicitly include them in the plan. Finally, we enhance reliability through plan diversification: multiple candidate plans are generated for each query, with the SQL agent producing a query for each plan, and final output selected via majority voting over their executions.
format Preprint
id arxiv_https___arxiv_org_abs_2510_23870
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle OraPlan-SQL: A Planning-Centric Framework for Complex Bilingual NL2SQL Reasoning
Liu, Marianne Menglin
Somayajula, Sai Ashish
Shah, Syed Fahad Allam
Ravi, Sujith
Roth, Dan
Computation and Language
Artificial Intelligence
We present OraPlan-SQL, our system for the Archer NL2SQL Evaluation Challenge 2025, a bilingual benchmark requiring complex reasoning such as arithmetic, commonsense, and hypothetical inference. OraPlan-SQL ranked first, exceeding the second-best system by more than 6% in execution accuracy (EX), with 55.0% in English and 56.7% in Chinese, while maintaining over 99% SQL validity (VA). Our system follows an agentic framework with two components: Planner agent that generates stepwise natural language plans, and SQL agent that converts these plans into executable SQL. Since SQL agent reliably adheres to the plan, our refinements focus on the planner. Unlike prior methods that rely on multiple sub-agents for planning and suffer from orchestration overhead, we introduce a feedback-guided meta-prompting strategy to refine a single planner. Failure cases from a held-out set are clustered with human input, and an LLM distills them into corrective guidelines that are integrated into the planner's system prompt, improving generalization without added complexity. For the multilingual scenario, to address transliteration and entity mismatch issues, we incorporate entity-linking guidelines that generate alternative surface forms for entities and explicitly include them in the plan. Finally, we enhance reliability through plan diversification: multiple candidate plans are generated for each query, with the SQL agent producing a query for each plan, and final output selected via majority voting over their executions.
title OraPlan-SQL: A Planning-Centric Framework for Complex Bilingual NL2SQL Reasoning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2510.23870