English

Consistent Query Answering for Primary Keys on Path Queries

Databases 2023-09-28 v1

Abstract

We study the data complexity of consistent query answering (CQA) on databases that may violate the primary key constraints. A repair is a maximal consistent subset of the database. For a Boolean query qq, the problem CERTAINTY(q)\mathsf{CERTAINTY}(q) takes a database as input, and asks whether or not each repair satisfies qq. It is known that for any self-join-free Boolean conjunctive query qq, CERTAINTY(q)\mathsf{CERTAINTY}(q) is in FO\mathbf{FO}, LSPACE\mathbf{LSPACE}-complete, or coNP\mathbf{coNP}-complete. In particular, CERTAINTY(q)\mathsf{CERTAINTY}(q) is in FO\mathbf{FO} for any self-join-free Boolean path query qq. In this paper, we show that if self-joins are allowed, the complexity of CERTAINTY(q)\mathsf{CERTAINTY}(q) for Boolean path queries qq exhibits a tetrachotomy between FO\mathbf{FO}, NL\mathbf{NL}-complete, PTIME\mathbf{PTIME}-complete, and coNP\mathbf{coNP}-complete. Moreover, it is decidable, in polynomial time in the size of the query~qq, which of the four cases applies.

Cite

@article{arxiv.2309.15270,
  title  = {Consistent Query Answering for Primary Keys on Path Queries},
  author = {Paraschos Koutris and Xiating Ouyang and Jef Wijsen},
  journal= {arXiv preprint arXiv:2309.15270},
  year   = {2023}
}

Comments

An evolved version of a paper published at PODS'21

R2 v1 2026-06-28T12:33:12.786Z