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 (QCPCQbag) 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 QCPCQbag were identified, as well as some undecidable extensions, including QCPUCQbag. 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 QCPbag 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 QCPUCQbag into a proof of undecidability of QCPCQbag. And, as you are going to see, we got stopped just one infinitely small before reaching this ultimate goal.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…