A Dichotomy in the Complexity of Consistent Query Answering for Two Atom Queries With Self-Join
Anantha Padmanabha, Luc Segoufin, Cristina Sirangelo
TL;DR
The paper establishes a complete complexity dichotomy for consistent query answering under primary key constraints for fixed two-atom Boolean conjunctive queries with self-joins: the problem is either PTIME or coNP-complete. The authors introduce 2way-determined queries and tripath-based structures, showing coNP-hardness via fork-tripath gadgets and PTIME results via a greedy fixpoint Cert_k(q) or a matching-based approach for triangle-tripath cases. A hybrid algorithm that combines Cert_k(q) with bipartite matching achieves PTIME for the broad 2way-determined class without fork-tripaths, while fork-tripath cases yield coNP-hardness; triangle-tripath cases require the matching-based method, with clique-databases providing clean PTIME scenarios. Overall, the work provides decidable, implementable criteria to classify two-atom queries and delineates precise algorithmic strategies, advancing the understanding of consistent query answering under primary keys.
Abstract
We consider the dichotomy conjecture for consistent query answering under primary key constraints. It states that, for every fixed Boolean conjunctive query q, testing whether q is certain (i.e. whether it evaluates to true 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 show that it also holds for queries with two atoms.
