Text-to-SQL in the Wild: A Naturally-Occurring Dataset Based on Stack Exchange Data

Moshe Hazoom, Vibhor Malik, Ben Bogin
6/9/2021
cs.CL
benchmark-dataset

Official code: hirupert/sede (107 stars, Jupyter Notebook, Apache-2.0, last commit 2021-06-25).

Abstract

Most available semantic parsing datasets, comprising of pairs of natural utterances and logical forms, were collected solely for the purpose of training and evaluation of natural language understanding systems. As a result, they do not contain any of the richness and variety of natural-occurring utterances, where humans ask about data they need or are curious about.

Show full abstract

In this work, we release SEDE, a dataset with 12,023 pairs of utterances and SQL queries collected from real usage on the Stack Exchange website. We show that these pairs contain a variety of real-world challenges which were rarely reflected so far in any other semantic parsing dataset, propose an evaluation metric based on comparison of partial query clauses that is more suitable for real-world queries, and conduct experiments with strong baselines, showing a large gap between the performance on SEDE compared to other common datasets.

View on arXivView PDF

Code Implementations(1)

hirupert/sedeOfficial100%
Apache-2.0

Text-to-SQL in the Wild: A Naturally-Occurring Dataset Based on Stack Exchange Data

10717Jupyter Notebook, PythonMar 24, 20215 years agoApache-2.0
deep-learningjsqlparsernatural-language-processingnlpsemantic-parsing+5 more

Similar Papers

Cite this paper

@article{hazoom2021texttosql,
  title  = {Text-to-SQL in the Wild: A Naturally-Occurring Dataset Based on Stack Exchange Data},
  author = {Moshe Hazoom and Vibhor Malik and Ben Bogin},
  year   = {2021},
  eprint = {2106.05006},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.05006}
}

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/2106.05006.svg)](https://codeofpaper.com/paper/2106.05006)

Discussion