A Simple Algorithm for Consistent Query Answering under Primary Keys

01/20/2023
by   Diego Figueira, et al.
0

We consider the dichotomy conjecture for consistent query answering under primary key constraints stating that for every fixed Boolean conjunctive query q, testing whether it is certain over all repairs of a given inconsistent database is either polynomial time or coNP-complete. This conjecture has been verified for self-join-free and path queries. We propose a simple inflationary fixpoint algorithm for consistent query answering which, for a given database, naively computes a set Δ of subsets of database repairs with at most k facts, where k is the size of the query q. The algorithm runs in polynomial time and can be formally defined as: 1. Initialize Δ with all sets S of at most k facts such that S satisfies q. 2. Add any set S of at most k facts to Δ if there exists a block B (ie, a maximal set of facts sharing the same key) such that for every fact a of B there is a set S' ∈Δ contained in (S ∪{a}). The algorithm answers "q is certain" iff Δ eventually contains the empty set. The algorithm correctly computes certain answers when the query q falls in the polynomial time cases for self-join-free queries and path queries. For arbitrary queries, the algorithm is an under-approximation: The query is guaranteed to be certain if the algorithm claims so. However, there are polynomial time certain queries (with self-joins) which are not identified as such by the algorithm.

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
10/08/2018

Consistent Query Answering for Primary Keys in Logspace

We study the complexity of consistent query answering on databases that ...
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
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
08/10/2023

Banzhaf Values for Facts in Query Answering

Quantifying the contribution of database facts to query answers has been...
research
10/14/2020

Neural Databases

In recent years, neural networks have shown impressive performance gains...
research
12/16/2021

Computing the Shapley Value of Facts in Query Answering

The Shapley value is a game-theoretic notion for wealth distribution tha...

Please sign up or login with your details

Forgot password? Click here to reset