Tighter bounds for query answering with Guarded TGDs

Antoine Amarilli, Michael Benedikt · DOI

Introduction

Open-World Query Answering (OWQA) is a fundamental problem in database theory, focused on finding "certain answers" to queries when data is incomplete but constrained by integrity rules. A prominent language for these rules is Guarded Tuple-Generating Dependencies (GTGDs). While powerful, GTGDs are computationally demanding; answering conjunctive queries under general GTGDs is 2EXPTIME-complete.

Existing research has shown that fixing the maximum arity (the number of columns) of the entire database schema can reduce this complexity to EXPTIME. However, this restriction is often impractical for real-world scenarios where certain "guard" relations naturally possess high arity. This paper explores whether tighter complexity bounds can be achieved by selectively restricting the arity of only specific relations, rather than the entire schema.

Problem Statement and the "Side Signature"

The primary challenge in OWQA under GTGDs is the exponential blow-up during reasoning. The authors identify a gap in the current understanding of how specific structural constraints affect complexity. They introduce the concept of a "side signature"—a subset of relations that can appear in the body of a rule alongside a single, unrestricted "guard" atom. By focusing on the arity of these side atoms rather than the guard atom, the authors aim to find more nuanced complexity bounds that reflect practical database designs.

Methodology: Linearization and Specialized Chases

The authors' approach centers on linearization, a technique that transforms complex GTGDs into simpler linear TGDs (rules with only one atom in the body). This process involves several key technical components:

  • Saturation Procedure: A pre-processing step creates a "childish saturation," a set of derived rules that are complete for fact entailment on small, specific instances.
  • One-Pass Tree-Like Chase: To avoid the exponential blow-up typical of bidirectional propagation in standard chase algorithms, the authors employ a specialized version that ensures facts flow in a single direction through the proof tree.
  • Shortcut Chase: This novel variation allows for "shortcutting" derivations, proving that the linearization process preserves the original query semantics.

Key Results

The research establishes a refined complexity landscape for OWQA under GTGDs, introducing two significant new bounds.

Summary of OWQA complexity under various GTGD restrictions.
  1. Result 1 (EXPTIME): When the arity of the side signature is bounded by a constant, the problem resides in EXPTIME, regardless of the arity of the guard relations. This represents a major improvement over the general 2EXPTIME bound and is shown to be tight even for unary side predicates.
  2. Result 2 (NP): If the side signature is fixed and the "width" of the GTGDs (the number of variables shared between the rule's body and head) is bounded by a constant, the complexity collapses to NP.

These results demonstrate that the high arity of guard atoms does not inherently dictate high complexity, provided the accompanying side conditions remain simple. Furthermore, the "width" of dependencies serves as a critical lever for reaching lower complexity classes like NP.

Conclusion and Future Directions

This work provides a unified framework for understanding the complexity of GTGDs, bridging the gap between general guarded fragments and simpler linear fragments. However, some areas remain for future exploration. The current NP-membership result (Result 2) does not account for constants in rule heads, and the core proofs primarily address single-headed TGDs. Additionally, while linear TGDs are in PSPACE, the general side-signature technique currently lands in EXPTIME; investigating a potential PSPACE upper bound for broader classes remains an open challenge. Future research may also look into loosening acyclicity requirements in position graphs to further extend the applicability of these tighter bounds.

Summary updated

BibTeX
@article{amarilli2026tighter,
  author = {Antoine Amarilli and Michael Benedikt},
  title = {{Tighter bounds for query answering with Guarded TGDs}},
  journal = {Log. Methods Comput. Sci.},
  year = {2026},
  doi = {10.46298/lmcs-22(2:8)2026},
}
Figure