[2508.07087] SQL-Exchange: Transforming SQL Queries Across Domains

[2508.07087] SQL-Exchange: Transforming SQL Queries Across Domains

arXiv - AI 3 min read Article

Summary

SQL-Exchange introduces a framework for transforming SQL queries across different database schemas while maintaining structural integrity, enhancing text-to-SQL performance.

Why It Matters

As databases become increasingly diverse, the ability to adapt SQL queries across different schemas is crucial for improving data accessibility and usability. SQL-Exchange addresses this challenge, potentially streamlining workflows in data science and AI applications.

Key Takeaways

  • SQL-Exchange enables effective mapping of SQL queries across diverse database schemas.
  • The framework preserves source query structure while adapting domain-specific elements.
  • In-context prompting and fine-tuning with mapped queries improve text-to-SQL performance.
  • Comprehensive evaluation shows effectiveness across various schemas and query types.
  • The approach enhances the usability of text-to-SQL systems in real-world applications.

Computer Science > Databases arXiv:2508.07087 (cs) [Submitted on 9 Aug 2025 (v1), last revised 22 Feb 2026 (this version, v2)] Title:SQL-Exchange: Transforming SQL Queries Across Domains Authors:Mohammadreza Daviran, Brian Lin, Davood Rafiei View a PDF of the paper titled SQL-Exchange: Transforming SQL Queries Across Domains, by Mohammadreza Daviran and 2 other authors View PDF HTML (experimental) Abstract:We introduce SQL-Exchange, a framework for mapping SQL queries across different database schemas by preserving the source query structure while adapting domain-specific elements to align with the target schema. We investigate the conditions under which such mappings are feasible and beneficial, and examine their impact on enhancing the in-context learning performance of text-to-SQL systems as a downstream task. Our comprehensive evaluation across multiple model families and benchmark datasets -- assessing structural alignment with source queries, execution validity on target databases, and semantic correctness -- demonstrates that SQL-Exchange is effective across a wide range of schemas and query types. Our results further show that both in-context prompting with mapped queries and fine-tuning on mapped data consistently yield higher text-to-SQL performance than using examples drawn directly from the source schema. Comments: Subjects: Databases (cs.DB); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) Cite as: arXiv:2508.07087 [cs.DB]   (or arXiv:2508.07...

Related Articles

UMKC Announces New Master of Science in Artificial Intelligence
Ai Infrastructure

UMKC Announces New Master of Science in Artificial Intelligence

UMKC announces a new Master of Science in Artificial Intelligence program aimed at addressing workforce demand for AI expertise, set to l...

AI News - General · 4 min ·
Machine Learning

Your prompts aren’t the problem — something else is

I keep seeing people focus heavily on prompt optimization. But in practice, a lot of failures I’ve observed don’t come from the prompt it...

Reddit - Artificial Intelligence · 1 min ·
Ai Infrastructure

[P] GPU friendly lossless 12-bit BF16 format with 0.03% escape rate and 1 integer ADD decode works for AMD & NVIDIA

Hi everyone : ) I just released a new research prototype It’s a lossless BF16 compression format that stores weights in 12 bits by replac...

Reddit - Machine Learning · 1 min ·
OpenAI’s Fidji Simo Is Taking Medical Leave Amid an Executive Shake-Up | WIRED
Ai Infrastructure

OpenAI’s Fidji Simo Is Taking Medical Leave Amid an Executive Shake-Up | WIRED

The company is undergoing major leadership restructuring as its CEO of AGI deployment goes on leave for “several weeks.”

Wired - AI · 5 min ·
More in Ai Infrastructure: This Week Guide Trending

No comments

No comments yet. Be the first to comment!

Stay updated with AI News

Get the latest news, tools, and insights delivered to your inbox.

Daily or weekly digest • Unsubscribe anytime