Skip to main content
QUICK REVIEW

[Paper Review] On the Computational Complexity of Consistent Query Answers

Jan Chomicki, Jerzy Marcinkowski|ArXiv.org|Apr 5, 2002
Advanced Database Systems and QueriesComputer Science9 references19 citations
TL;DR

This paper provides a complete classification of the computational complexity of consistent query answers in databases with integrity constraints, focusing on functional dependencies and denial constraints. It establishes that computing consistent answers is tractable (in PTIME) for certain query and constraint types, but becomes co-NP-complete for others, particularly under existential queries and denial constraints with complex structural properties.

ABSTRACT

We consider here the problem of obtaining reliable, consistent information from inconsistent databases -- databases that do not have to satisfy given integrity constraints. We use the notion of consistent query answer -- a query answer which is true in every (minimal) repair of the database. We provide a complete classification of the computational complexity of consistent answers to first-order queries w.r.t. functional dependencies and denial constraints. We show how the complexity depends on the {\em type} of the constraints considered, their {\em number}, and the {\em size} of the query. We obtain several new PTIME cases, using new algorithms.

Motivation & Objective

  • To formally define and analyze the computational complexity of consistent query answers in inconsistent databases.
  • To address the challenge of deriving reliable query results when databases violate integrity constraints due to data integration or system limitations.
  • To classify the complexity of consistent query answering across different types of integrity constraints, including functional dependencies and denial constraints.
  • To identify conditions under which consistent query answers can be computed efficiently (in PTIME) versus those that are computationally hard (co-NP-complete).

Proposed method

  • Uses the concept of a 'repair'—a minimal, consistent database that differs minimally from the original inconsistent instance.
  • Reduces the problem of consistent query answering to graph-theoretic properties, such as the existence of maximal V-free or Y-free sets in edge-colored graphs.
  • Employs reductions from 3SAT and other NP-complete problems to prove co-NP-completeness for specific query and constraint combinations.
  • Defines denial constraints as generalizations of functional dependencies, allowing arbitrary built-in predicates and multiple literals per constraint.
  • Constructs database instances from edge-colored graphs to encode logical formulas, enabling complexity analysis via graph properties.
  • Applies model-theoretic semantics to define consistent answers as those true in all possible repairs of the database.

Experimental results

Research questions

  • RQ1Under what conditions is consistent query answering computationally tractable (i.e., in PTIME) for first-order queries?
  • RQ2How does the complexity of consistent query answering vary with the type and number of integrity constraints, such as functional dependencies and denial constraints?
  • RQ3What is the computational complexity of consistent query answering for existential queries over databases with denial constraints?
  • RQ4Can the problem of consistent query answering be reduced to known NP-complete or co-NP-complete problems, and what does this imply for algorithm design?
  • RQ5What structural properties of databases or constraints lead to co-NP-completeness in consistent query answering?

Key findings

  • Consistent query answers for conjunctive queries over denial constraints can be computed in PTIME, extending prior results from binary denial constraints to arbitrary quantifier-free queries.
  • For queries of the form ∃x,y[R(x,y,b)], consistent query answering is co-NP-data-complete when the integrity constraints include two key dependencies (A→BC and B→AC).
  • The existence of a maximal V-free set in a tri-colored graph corresponds to the existence of a repair where a specific query is false, establishing a co-NP-completeness result.
  • For a single denial constraint of the form ¬[R(x,y,s) ∧ R(y,z,s′) ∧ R(y,w,s′′) ∧ s′≠s′′], consistent query answering for ∃x,y[R(x,y,p)] is co-NP-data-complete.
  • The problem of determining whether a graph has the max-Y-free property is NP-complete, which underlies the co-NP-completeness of certain consistent query answering problems.
  • The paper establishes a complete classification of complexity for consistent query answering, showing that tractability depends on the structure of constraints and the form of the query.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.