Provenance of HAVING Queries in Semirings with Monus

📅 2026-09-25
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the limitation of the standard semiring framework in supporting data provenance for aggregation queries involving HAVING clauses. We propose defining, for the first time, a provenance semantics for such queries within commutative semirings with monus (m-semirings). This formulation inherently accommodates self-join rewriting standards without introducing additional operators, and we formally prove their equivalence. Furthermore, we implement algorithmic optimizations and a prototype system building upon ProvSQL. The primary contribution lies in overcoming the constraints of classical semiring theory regarding aggregation operations, thereby providing a unified and elegant provenance semantics framework for aggregate queries. Experimental evaluations on real-world datasets demonstrate that our approach effectively supports probabilistic query evaluation, confirming its practical viability and performance feasibility.
📝 Abstract
The semiring framework and its extensions form the basis of a rich collection of theoretical results and implementations for provenance tracking of database queries. Many real-world queries use aggregation and conditions on the aggregate values. Support for such queries has been proposed by introducing semimodule elements as aggregate values and formal comparisons between aggregate values as tuple annotations, which takes the approach outside the standard semiring framework. In this work, we show how to introduce a semantics for the provenance of such queries in arbitrary commutative semirings with monus (or m-semirings), without the need for additional operators. This semantics is shown to agree with the standard provenance of the aggregation-free self-join rewriting of HAVING COUNT(*) queries in semirings that are absorptive and where times distributes over monus. We derive algorithms for this semantics and implement them within the ProvSQL system, with viable performance on a real-world dataset for probabilistic query evaluation.
Problem

Research questions and friction points this paper is trying to address.

Provenance
HAVING queries
Semirings with monus
Aggregation
Database queries
Innovation

Methods, ideas, or system contributions that make the work stand out.

Provenance
Semirings with Monus
HAVING Queries
Aggregation
ProvSQL
🔎 Similar Papers
2024-04-15Annual Meeting of the Association for Computational LinguisticsCitations: 4