Adaptive and Robust Translation from Natural Language to Multi-model Query Languages
Gengyuan Shi, Chaokun Wang, Yabin Liu, Jiawei Ren
Abstract
Multi-model databases and polystore systems are increasingly studied for managing multimodel data holistically. As their primary interface, multi-model query languages (MMQLs) often exhibit complex grammars, highlighting the need for effective Text-to-MMQL translation methods. Despite advances in natural language translation, no effective solutions for Text-to-MMQL exist. To address this gap, we formally define the Text-to-MMQL task and present the first Text-to-MMQL dataset involving three representative MMQLs. We propose an adaptive Text-to-MMQL framework that includes both a schema embedding module for capturing multi-model schema information and an MMQL representation strategy to generate concise intermediate query formats with error correction in generated queries. Experimental results show that the proposed framework achieves over a 9% accuracy improvement over our adapted baseline methods.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
- PURPLE: Making a Large Language Model a Better SQL Writer cites Natural SQL: Making SQL Easier to Infer from Natural Language Specifications
- PURPLE: Making a Large Language Model a Better SQL Writer cites DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- PURPLE: Making a Large Language Model a Better SQL Writer cites CatSQL: Towards Real World Natural Language to SQL Applications
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction cites Natural SQL: Making SQL Easier to Infer from Natural Language Specifications
- CatSQL: Towards Real World Natural Language to SQL Applications cites Natural SQL: Making SQL Easier to Infer from Natural Language Specifications
- DTS-SQL: Decomposed Text-to-SQL with Small Large Language Models cites DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
Builds on7
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionMohammadreza Pourreza, Davood RafieiNeurIPS 2023 · 909 citations
- Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsYujian Gan, Xinyun Chen, Jinxia Xie, Matthew Purver et al.EMNLP Findings 2021 · 88 citations
- CatSQL: Towards Real World Natural Language to SQL ApplicationsHan Fu, Chang Liu, Bin Wu, Feifei Li et al.VLDB 2023 · 79 citations
- DTS-SQL: Decomposed Text-to-SQL with Small Large Language ModelsMohammadreza Pourreza, Davood RafieiEMNLP Findings 2024 · 71 citations
- PURPLE: Making a Large Language Model a Better SQL WriterTonghui Ren, Yuankai Fan, Zhenying He, Ren Huang et al.ICDE 2024 · 49 citations
Related papers
- Dialect-SQL: An Adaptive Framework for Bridging the Dialect Gap in Text-to-SQLJie Shi, Xi Cao, Bo Xu, Jiaqing Liang et al.EMNLP 2025 · 2 citations
- R³-NL2GQL: A Model Coordination and Knowledge Graph Alignment Approach for NL2GQLYuhang Zhou, Yu He, Siyu Tian, Yuchen Ni et al.EMNLP Findings 2024 · 5 citations
- MultiSQL: A Schema-Integrated Context-Dependent Text2SQL Dataset with Diverse SQL OperationsChunhui Li, Yifan Wang, Zhen Wu, Zhen Yu et al.ACL Findings 2024 · 6 citations
- MM2SQL: A Benchmark and Method for Visually-Grounded SQL GenerationShengze Shi, Tao Ren, Li Qi, Tingrui Yang et al.ICDE 2026
- MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQLHaolin Yang, Jipeng Zhang, Zhitao He, Alexander Zhou et al.ICML 2026 · 12 citations
