Dial: A Knowledge-Grounded Dialect-Specific NL2SQL System
Xiang Zhang, Hongming Xu, Le Zhou, Wei Zhou, Xuanhe Zhou, Guoliang Li, Yuyu Luo, Changdong Liu, Guorun Chen, Jiang Liao, Fan Wu

TL;DR
Dial is a comprehensive framework that enhances NL2SQL systems to accurately generate dialect-specific SQL queries across multiple database systems by leveraging knowledge grounding, intent decomposition, and semantic verification.
Contribution
The paper introduces Dial, a novel knowledge-grounded NL2SQL framework that handles multiple SQL dialects through logical query planning, a hierarchical knowledge base, and an execution-driven debugging loop.
Findings
Improves translation accuracy by 10.25% over baselines.
Increases dialect feature coverage by 15.77%.
Supports six major database dialects with 2,218 test cases.
Abstract
Enterprises commonly deploy heterogeneous database systems, each of which owns a distinct SQL dialect with different syntax rules, built-in functions, and execution constraints. However, most existing NL2SQL methods assume a single dialect (e.g., SQLite) and struggle to produce queries that are both semantically correct and executable on target engines. Prompt-based approaches tightly couple intent reasoning with dialect syntax, rule-based translators often degrade native operators into generic constructs, and multi-dialect fine-tuning suffers from cross-dialect interference. In this paper, we present Dial, a knowledge-grounded framework for dialect-specific NL2SQL. Dial introduces: (1) a Dialect-Aware Logical Query Planning module that converts natural language into a dialect-aware logical query plan via operator-level intent decomposition and divergence-aware specification; (2)…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Cloud Computing and Resource Management · Semantic Web and Ontologies
