SPARQLing Database Queries from Intermediate Question Decompositions

09/13/2021
by   Irina Saparina, et al.
0

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. 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).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/31/2017

Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learning

A significant amount of the world's knowledge is stored in relational da...
research
11/07/2020

SeqGenSQL – A Robust Sequence Generation Model for Structured Query Language

We explore using T5 (Raffel et al. (2019)) to directly translate natural...
research
04/27/2017

Learning a Neural Semantic Parser from User Feedback

We present an approach to rapidly and easily build natural language inte...
research
08/29/2023

Natural language to SQL in low-code platforms

One of the developers' biggest challenges in low-code platforms is retri...
research
06/14/2023

SQL2Circuits: Estimating Metrics for SQL Queries with A Quantum Natural Language Processing Method

Quantum computing has developed significantly in recent years. Developin...
research
07/02/2018

Pragmatic approach to structured data querying via natural language interface

As the use of technology increases and data analysis becomes integral in...
research
09/14/2022

SUN: Exploring Intrinsic Uncertainties in Text-to-SQL Parsers

This paper aims to improve the performance of text-to-SQL parsing by exp...

Please sign up or login with your details

Forgot password? Click here to reset