[Paper Review] A Dichotomy on the Complexity of Consistent Query Answering for Atoms with Simple Keys
This paper establishes a dichotomy in the complexity of consistent query answering (CQA) for boolean conjunctive queries without self-joins, where each atom has either a single-attribute key (simple key) or a composite key over all attributes. The authors prove that for this class, the problem CERTAINTY(Q) is either in PTIME or coNP-complete, confirming a long-standing conjecture for this specific setting using a novel graph-based structural analysis of query and key constraints.
We study the problem of consistent query answering under primary key violations. In this setting, the relations in a database violate the key constraints and we are interested in maximal subsets of the database that satisfy the constraints, which we call repairs. For a boolean query Q, the problem CERTAINTY(Q) asks whether every such repair satisfies the query or not; the problem is known to be always in coNP for conjunctive queries. However, there are queries for which it can be solved in polynomial time. It has been conjectured that there exists a dichotomy on the complexity of CERTAINTY(Q) for conjunctive queries: it is either in PTIME or coNP-complete. In this paper, we prove that the conjecture is indeed true for the case of conjunctive queries without self-joins, where each atom has as a key either a single attribute (simple key) or all attributes of the atom.
Motivation & Objective
- To resolve the long-standing conjecture that CERTAINTY(Q) for boolean conjunctive queries is either in PTIME or coNP-complete.
- To analyze the complexity of consistent query answering under primary key violations, focusing on queries without self-joins and with simple or full-attribute keys.
- To identify structural conditions in the query graph that determine whether CERTAINTY(Q) is tractable or intractable.
- To extend prior results on first-order expressibility and tractability to a broader class of queries by introducing the concept of consistent relations in non-acyclic settings.
Proposed method
- Construct a directed query graph G[Q] where vertices are variables and edges represent join conditions between atoms.
- Define a labeling function L on variables based on the key constraints and the structure of the query, using logical expressions derived from the key attributes.
- Introduce the notion of (R,S)-valid labeling to characterize consistent behavior of relation pairs under key constraints.
- Use a reduction from 3-SAT to prove coNP-completeness when the labeling leads to a tautological contradiction.
- Prove that when the labeling yields a consistent and non-tautological expression, CERTAINTY(Q) is in PTIME via a first-order rewriting construction.
- Leverage the insight that certain relation pairs behave as consistent relations under key constraints, simplifying the repair space.
Experimental results
Research questions
- RQ1Is there a dichotomy in the complexity of CERTAINTY(Q) for boolean conjunctive queries without self-joins and with simple or full-attribute keys?
- RQ2Under what structural conditions on the query graph and key constraints is CERTAINTY(Q) in PTIME rather than coNP-complete?
- RQ3Can the presence of key constraints be used to collapse multiple relations into an effective consistent relation, simplifying the repair space?
- RQ4Does the absence of self-joins and the use of simple keys allow for a complete classification of CERTAINTY(Q) into PTIME and coNP-complete?
- RQ5Can the labeling function L on variables be used to algorithmically determine the complexity class of CERTAINTY(Q)?
Key findings
- CERTAINTY(Q) for boolean conjunctive queries without self-joins and with simple or full-attribute keys is either in PTIME or coNP-complete, confirming the conjecture for this class.
- The classification is determined by the logical consistency of a labeling function L defined on the query’s variables based on key constraints and join structure.
- When the labeling function L evaluates to a tautology (e.g., ⊥), the problem is coNP-complete; otherwise, it is in PTIME.
- The paper introduces the concept of consistent relations, showing that pairs of atoms with shared key attributes can be treated as a single consistent relation in the repair space.
- For queries like Q₁=R(x̲,y),S(y̲,z), CERTAINTY(Q) is in AC⁰, while for Q₂=R(x̲,y),S(z̲,y), it is coNP-complete, illustrating the dichotomy.
- The results generalize to arbitrary-arity relations as long as each atom has either a single key attribute or all attributes as a key.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.