SPARQLing Database Queries from Intermediate Question Decompositions

Irina Saparina, Anton Osokin
9/13/2021
cs.CL

Official code: yandex-research/sparqling-queries (33 stars, Python, MIT, last commit 2022-06-01).

Abstract

To translate natural language questions into executable database queries, most approaches rely on a fully annotated training set. Annotating a large dataset with queries is difficult as it requires query-language expertise.

Show full abstract

We reduce this burden using grounded in databases intermediate question representations. These representations are simpler to collect and were originally crowdsourced within the Break dataset (Wolfson et al., 2020). Our pipeline consists of two parts: a neural semantic parser that converts natural language questions into the intermediate representations and a non-trainable transpiler to the SPARQL query language (a standard language for accessing knowledge graphs and semantic web). We chose SPARQL because its queries are structurally closer to our intermediate representations (compared to SQL). We observe that the execution accuracy of queries constructed by our model on the challenging Spider dataset is comparable with the state-of-the-art text-to-SQL methods trained with annotated SQL queries. Our code and data are publicly available (see https://github.com/yandex-research/sparqling-queries).

View on arXivView PDF

Code Implementations(1)

MIT

This repo in the implementation of EMNLP'21 paper "SPARQLing Database Queries from Intermediate Question Decompositions" by Irina Saparina, Anton Osokin

337Python, JsonnetSep 10, 20214 years agoMIT
natural-language-inferencesemantic-parsingtext-to-sql

Similar Papers

Cite this paper

@article{saparina2021sparqling,
  title  = {SPARQLing Database Queries from Intermediate Question Decompositions},
  author = {Irina Saparina and Anton Osokin},
  year   = {2021},
  eprint = {2109.06162},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.06162}
}

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

Discussion