The Complexity of Why-Provenance for Datalog Queries
Marco Calautti, Ester Livshits, Andreas Pieris, Markus Schneider

TL;DR
This paper investigates the computational complexity of explaining query results in Datalog, revealing that recursive queries are intractable while non-recursive ones are manageable, and demonstrates practical feasibility using SAT solvers.
Contribution
It provides the first complexity analysis of why-provenance for Datalog queries, distinguishing between recursive and non-recursive cases, and explores practical solutions with SAT solvers.
Findings
Recursive Datalog why-provenance is intractable.
Non-recursive Datalog why-provenance is tractable.
SAT solvers can effectively handle practical instances.
Abstract
Explaining why a database query result is obtained is an essential task towards the goal of Explainable AI, especially nowadays where expressive database query languages such as Datalog play a critical role in the development of ontology-based applications. A standard way of explaining a query result is the so-called why-provenance, which essentially provides information about the witnesses to a query result in the form of subsets of the input database that are sufficient to derive that result. To our surprise, despite the fact that the notion of why-provenance for Datalog queries has been around for decades and intensively studied, its computational complexity remains unexplored. The goal of this work is to fill this apparent gap in the why-provenance literature. Towards this end, we pinpoint the data complexity of why-provenance for Datalog queries and key subclasses thereof. The…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsScientific Computing and Data Management · Semantic Web and Ontologies · Advanced Database Systems and Queries
