Reproduce “Semantic Decomposition of Question and SQL for Text-to-SQL Parsing” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ben Eyal, Amir Bachar, Ophir Haroche, Moran Mahabi, Michael Elhadad

Researchers at Ben Gurion University introduce the Query Plan Language (QPL), a modular, dataflow-oriented intermediate representation for Text-to-SQL parsing. This new language improves model accuracy for complex queries by making the target more learnable and significantly enhances non-expert users' ability to verify query correctness, addressing limitations of direct SQL generation.

Key insights

  • QPL, as a semantically transformed and modular target language, is more readily learned by language models than raw SQL, leading to improved compositional generalization for complex queries.
  • Non-expert users can significantly better interpret and verify the correctness of complex queries when presented in QPL compared to standard SQL.
  • Incorporating rich schema encoding (column types, keys, relevant values) consistently boosts the performance of Text-to-QPL models across all query difficulty levels.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.