Weakly Supervised Text-to-SQL Parsing through Question Decomposition

Tomer Wolfson, Daniel Deutch, Jonathan Berant
12/12/2021
cs.CLcs.AIcs.DB

Official code: tomerwolgithub/question-decomposition-to-sql (23 stars, Python, MIT, last commit 2023-11-22).

Abstract

Text-to-SQL parsers are crucial in enabling non-experts to effortlessly query relational data. Training such parsers, by contrast, generally requires expertise in annotating natural language (NL) utterances with corresponding SQL queries.

Show full abstract

In this work, we propose a weak supervision approach for training text-to-SQL parsers. We take advantage of the recently proposed question meaning representation called QDMR, an intermediate between NL and formal query languages. Given questions, their QDMR structures (annotated by non-experts or automatically predicted), and the answers, we are able to automatically synthesize SQL queries that are used to train text-to-SQL models. We test our approach by experimenting on five benchmark datasets. Our results show that the weakly supervised models perform competitively with those trained on annotated NL-SQL data. Overall, we effectively train text-to-SQL parsers, while using zero SQL annotations.

View on arXivView PDF

Code Implementations(1)

MIT

Weakly Supervised Text-to-SQL Parsing through Question Decomposition

234PythonApr 14, 20223 years agoMIT

Similar Papers

Cite this paper

@article{wolfson2021weakly,
  title  = {Weakly Supervised Text-to-SQL Parsing through Question Decomposition},
  author = {Tomer Wolfson and Daniel Deutch and Jonathan Berant},
  year   = {2021},
  eprint = {2112.06311},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.06311}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.06311.svg)](https://codeofpaper.com/paper/2112.06311)

Discussion