Determinacy of Real Conjunctive Queries. The Boolean Case

12/23/2021
by   Jaroslaw Kwiecien, et al.
0

In their classical 1993 paper [CV93] Chaudhuri and Vardi notice that some fundamental database theory results and techniques fail to survive when we try to see query answers as bags (multisets) of tuples rather than as sets of tuples. But disappointingly, almost 30 years after [CV93], the bag-semantics based database theory is still in its infancy. We do not even know whether conjunctive query containment is decidable. And this is not due to lack of interest, but because, in the multiset world, everything suddenly gets discouragingly complicated. In this paper, we try to re-examine, in the bag semantics scenario, the query determinacy problem, which has recently been intensively studied in the set semantics scenario. We show that query determinacy (under bag semantics) is decidable for boolean conjunctive queries and undecidable for unions of such queries (in contrast to the set semantics scenario, where the UCQ case remains decidable even for unary queries). We also show that – surprisingly – for path queries determinacy under bag semantics coincides with determinacy under set semantics (and thus it is decidable).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/24/2019

Bag Query Containment and Information Theory

The query containment problem is a fundamental algorithmic problem in da...
research
04/13/2023

Conjunctive Regular Path Queries under Injective Semantics

We introduce injective semantics for Conjunctive Regular Path Queries (C...
research
03/17/2018

Datalog: Bag Semantics via Set Semantics

Duplicates in data management are common and problematic. In this work, ...
research
04/01/2020

SPES: A Two-Stage Query Equivalence Verifier

In database-as-a-service platforms, automated verification of query equi...
research
08/25/2023

Discovering Dichotomies for Problems in Database Theory

Dichotomy theorems, which characterize the conditions under which a prob...
research
11/23/2022

Run-Based Semantics for RPQs

The formalism of RPQs (regular path queries) is an important building bl...
research
02/13/2019

Snapshot Semantics for Temporal Multiset Relations (Extended Version)

Snapshot semantics is widely used for evaluating queries over temporal d...

Please sign up or login with your details

Forgot password? Click here to reset