Bag Semantics Query Containment: The CQ vs. UCQ Case and Other Stories

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 (QCP CQ bag ) remains one of the most intriguing open problems in database theory. Certain effort has been put, in the last 30 years, to solve this problem and some decidable special cases of QCP CQ bag were identified, as well as some undecidable extensions, including QCP UCQ bag . In this paper we introduce a new technique which produces, for a given UCQ Φ, a CQ φ such that the application of φ to a database D is, in some sense, an approximation of the application of Φ to D . Using this technique we could analyze the status of QCP bag 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 QCP UCQ bag into a proof of undecidability of QCP CQ bag . And, as you are going to see, we got stopped just one infinitely small ε before reaching this ultimate goal.

Institutions

Publication Details

Journal
Proceedings of the ACM on Management of Data
Published
2025-11-10
DOI
https://doi.org/10.1145/3767711
Primary Topic
Advanced Database Systems and Queries
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bag Semantics Query Containment: The CQ vs. UCQ Case and Other Stories

Proceedings of the ACM on Management of Data
Advanced Database Systems and Queries
article

Bag Semantics Query Containment: The CQ vs. UCQ Case and Other Stories

article en

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 (QCP CQ bag ) remains one of the most intriguing open problems in database theory. Certain effort has been put, in the last 30 years, to solve this problem and some decidable special cases of QCP CQ bag were identified, as well as some undecidable extensions, including QCP UCQ bag . In this paper we introduce a new technique which produces, for a given UCQ Φ, a CQ φ such that the application of φ to a database D is, in some sense, an approximation of the application of Φ to D . Using this technique we could analyze the status of QCP bag 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 QCP UCQ bag into a proof of undecidability of QCP CQ bag . And, as you are going to see, we got stopped just one infinitely small ε before reaching this ultimate goal.

Proceedings of the ACM on Management of DataVol. 3(5)
University of Wrocław (PL)
Peace, Justice and strong institutions
Openalex Percentile: Top 41%
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.