Computer Science > Databases
[Submitted on 27 Jan 2022 (this version), latest version 17 Jul 2023 (v3)]
Title:Probabilistic Query Evaluation with Bag Semantics
View PDFAbstract:Typically, probabilistic databases (PDBs) are probability distributions over the subsets of a finite set of facts. However, many practical implementations of relational databases use a bag semantics that allows multiple copies of a fact. As facts may appear arbitrarily often, extending PDBs to a bag semantics naturally leads to infinite PDBs, the mathematical framework of which as only been introduced recently by Grohe and Lindner (PODS 2019, ICDT 2020).
In this paper, we study the problem of query evaluation over PDBs with bag semantics (bag PDBs). We focus on tuple-independent bag PDBs, which means that the multiplicities of different facts are independent. In the set-based setting, the complexity of probabilistic query evaluation is well-understood for unions of conjunctive queries (UCQs): it is either in polynomial time, or #P-hard (Dalvi and Suciu, JACM 2012). The setting with bag semantics differs substantially. As PDBs are no longer finite, we need feasible representations. Moreover, the answer to a Boolean query is a probability distribution over numbers, rather than a single probability. This yields different reasonable definitions of the query evaluation problem. First, we discuss computing the expectation and variance of query answers. Surprisingly, under mild assumptions on the representation, both problems are solvable in polynomial time for all UCQs. Second, we investigate the problem of computing the probability that the answer is at most k, where k is a parameter. While key arguments from prior work do not carry over to our setting, we show that the original dichotomy for Boolean self-join free CQs persists for most representations. Still, there are representation systems where the problem is always solvable in polynomial time.
Submission history
From: Peter Lindner [view email][v1] Thu, 27 Jan 2022 13:57:03 UTC (28 KB)
[v2] Wed, 13 Apr 2022 10:05:23 UTC (34 KB)
[v3] Mon, 17 Jul 2023 17:52:19 UTC (40 KB)
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.