< Terug naar vorige pagina

Publicatie

First-order definable counting-only queries

Tijdschriftbijdrage - Tijdschriftartikel

Many data sources can be represented easily by collections of sets of objects. For several practical queries on such collections of sets of objects, the answer does not depend on the precise composition of these sets, but only on the number of sets to which each object belongs. This is the case k= 1 for the more general situation where the query answer only depends on the number of sets to which each collection of at most k objects belongs. We call such queries k-counting-only. Here, we focus on k-SyCALC, i.e., k-counting-only queries that are first-order definable. As k-SyCALC is semantically defined, however, it is not surprising that it is already undecidable whether a first-order query is in 1-SyCALC. Therefore, we introduce SimpleCALC-k, a syntactically defined (strict) fragment of k-SyCALC. It turns out that many practical queries in k-SyCALC can already be expressed in SimpleCALC- k. We also define the query language GCount- k, which expresses counting-only queries directly by using generalized counting terms, and show that this language is equivalent to SimpleCALC-k. We prove that the k-counting-only queries form a non-collapsing hierarchy: for every k, there exist (k+ 1)-counting-only queries that are not k-counting-only. This result specializes to both SimpleCALC- k and k-SyCALC. Finally, we establish a strong dichotomy between 1-SyCALC and SimpleCALC- k on the one hand and 2-SyCALC on the other hand by showing that satisfiability, validity, query containment, and query equivalence are decidable for the former two languages, but not for the latter one.
Tijdschrift: Annals of mathematics and artificial intelligence
ISSN: 1012-2443
Issue: 1-2
Volume: 87
Pagina's: 109 - 136
Jaar van publicatie:2019
Trefwoorden:Bag of sets, Counting-only query, First-order definable query, Satisfiability
BOF-keylabel:ja
IOF-keylabel:ja
BOF-publication weight:0.5
CSS-citation score:1
Auteurs:International
Authors from:Higher Education
Toegankelijkheid:Open