paper-with-me

홈 › Papers

SPARQLing Database Queries from Intermediate Question Decompositions

2021-09-13 · EMNLP 2021 11 · Irina Saparina, Anton Osokin

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

📄 PDF Abstract BibTeX arXiv:2109.06162

Code (1)

yandex-research/sparqling-queries 공식 구현 pytorch

Tasks

Knowledge GraphsText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

SeqGenSQL -- A Robust Sequence Generation Model for Structured Query Language

2020-11-07 · Ning li, Bethany Keller, Mark Butler, Daniel Cer

We explore using T5 (Raffel et al. (2019)) to directly translate natural language questions into SQL statements. General purpose natural language that interfaces to information stored within databases requires flexibly t…

Text GenerationText to SQLText-To-SQL

A Methodology for Creating Question Answering Corpora Using Inverse Data Annotation

2020-04-16 · ACL 2020 6 · Jan Deriu, Katsiaryna Mlynchyk, Philippe Schläpfer, Alvaro Rodrigo 외

In this paper, we introduce a novel methodology to efficiently construct a corpus for question answering over structured data. For this, we introduce an intermediate representation that is based on the logical query plan…

Question AnsweringSemantic Parsing

Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractability

2023-11-24 · Hubie Chen, Gianluigi Greco, Stefan Mengel, Francesco Scarcello

Counting the number of answers to conjunctive queries is a fundamental problem in databases that, under standard assumptions, does not have an efficient solution. The issue is inherently #P-hard, extending even to classe…

Functional Aggregate Queries with Additive Inequalities

2018-12-22 · Mahmoud Abo Khamis, Ryan R. Curtin, Benjamin Moseley, Hung Q. Ngo 외

Motivated by fundamental applications in databases and relational machine learning, we formulate and study the problem of answering functional aggregate queries (FAQ) in which some of the input factors are defined by a c…

BIG-bench Machine LearningClustering

Chase: A Large-Scale and Pragmatic Chinese Dataset for Cross-Database Context-Dependent Text-to-SQL

2021-08-01 · ACL 2021 5 · Jiaqi Guo, Ziliang Si, Yu Wang, Qian Liu 외

The cross-database context-dependent Text-to-SQL (XDTS) problem has attracted considerable attention in recent years due to its wide range of potential applications. However, we identify two biases in existing datasets f…

Text to SQLText-To-SQL