Bag Semantics Query Containment: The CQ vs. UCQ Case and Other Stories
Abstract
Query Containment Problem (QCP) is a fundamental decision problem in query processing and optimization. While QCP has for a long time been completely understood for the case of set semantics, decidability of QCP for conjunctive queries under multi-set semantics () remains one of the most intriguing open problems in database theory. Certain effort has been put, in last 30 years, to solve this problem and some decidable special cases of were identified, as well as some undecidable extensions, including . In this paper we introduce a new technique which produces, for a given UCQ , a CQ such that the application of to a database is, in some sense, an approximation of the application of to . Using this technique we could analyze the status of when one of the queries in question is a CQ and the other is a UCQ, and we reached conclusions which surprised us a little bit. We also tried to use this technique to translate the known undecidability proof for into a proof of undecidability of . And, as you are going to see, we got stopped just one infinitely small before reaching this ultimate goal.
Keywords
Cite
@article{arxiv.2503.07219,
title = {Bag Semantics Query Containment: The CQ vs. UCQ Case and Other Stories},
author = {Jerzy Marcinkowski and Piotr Ostropolski-Nalewaja},
journal= {arXiv preprint arXiv:2503.07219},
year = {2025}
}
Comments
Expanded explanations to provide better intuitions