Consistent Query Answering for Primary Keys in Logspace

10/08/2018
by   Paraschos Koutris, et al.
0

We study the complexity of consistent query answering on databases that may violate primary key constraints. A repair of such a database is any consistent database that can be obtained by deleting a minimal set of tuples. For every Boolean query q, CERTAINTY(q) is the problem that takes a database as input and asks whether q evaluates to true on every repair. In [KW17], the authors show that for every self-join-free Boolean conjunctive query q, the problem CERTAINTY(q) is either in P or coNP-complete, and it is decidable which of the two cases applies. In this paper, we sharpen this result by showing that for every self-join-free Boolean conjunctive query q, the problem CERTAINTY(q) is either expressible in symmetric stratified Datalog or coNP-complete. Since symmetric stratified Datalog is in L, we thus obtain a complexity-theoretic dichotomy between L and coNP-complete. Another new finding of practical importance is that CERTAINTY(q) is on the logspace side of the dichotomy for queries q where all join conditions express foreign-to-primary key matches, which is undoubtedly the most common type of join condition.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/21/2023

A Dichotomy in the Complexity of Consistent Query Answering for Two Atom Queries With Self-Join

We consider the dichotomy conjecture for consistent query answering unde...
research
03/25/2022

A Dichotomy in Consistent Query Answering for Primary Keys and Unary Foreign Keys

Since 2005, significant progress has been made in the problem of Consist...
research
01/20/2023

A Simple Algorithm for Consistent Query Answering under Primary Keys

We consider the dichotomy conjecture for consistent query answering unde...
research
12/17/2021

Counting Database Repairs Entailing a Query: The Case of Functional Dependencies

A key task in the context of consistent query answering is to count the ...
research
11/08/2022

Consistent Query Answering for Primary Keys and Conjunctive Queries with Counting

The problem of consistent query answering for primary keys and self-join...
research
04/22/2022

Uniform Operational Consistent Query Answering

Operational consistent query answering (CQA) is a recent framework for C...
research
06/24/2021

The Complexity of Boolean Conjunctive Queries with Intersection Joins

Intersection joins over interval data are relevant in spatial and tempor...

Please sign up or login with your details

Forgot password? Click here to reset