First-order definable counting-only queries

被引:0
|
作者
Hellings, Jelle [1 ,2 ]
Gyssens, Marc [2 ]
Van Gucht, Dirk [3 ]
Wu, Yuqing [4 ]
机构
[1] Univ Calif Davis, Dept Comp Sci, Exploratory Syst Lab, Davis, CA 95616 USA
[2] Hasselt Univ, Fac Sci, Martelarenlaan 42, B-3500 Hasselt, Belgium
[3] Indiana Univ, Sch Informat Comp & Engn, 919 E 10th St, Bloomington, IN 47408 USA
[4] Pomona Coll, 185 E 6th St, Claremont, CA 91711 USA
基金
美国国家科学基金会;
关键词
Bag of sets; Counting-only query; First-order definable query; Satisfiability; LOGICS;
D O I
10.1007/s10472-019-09652-8
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:109 / 136
页数:28
相关论文
共 50 条
  • [21] First-order and counting theories of ω-automatic structures
    Kuske, Dietrich
    Lohrey, Markus
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, PROCEEDINGS, 2006, 3921 : 322 - 336
  • [22] Skolemization for Weighted First-Order Model Counting
    Van den Broeck, Guy
    Meert, Wannes
    Darwiche, Adnan
    FOURTEENTH INTERNATIONAL CONFERENCE ON THE PRINCIPLES OF KNOWLEDGE REPRESENTATION AND REASONING, 2014, : 111 - 120
  • [23] First-order and counting theories of ω-automatic structures
    Kuske, Dietrich
    Lohrey, Markus
    JOURNAL OF SYMBOLIC LOGIC, 2008, 73 (01) : 129 - 150
  • [24] Symmetric Weighted First-Order Model Counting
    Beame, Paul
    Van den Broeck, Guy
    Gribkoff, Eric
    Suciu, Dan
    PODS'15: PROCEEDINGS OF THE 33RD ACM SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2015, : 313 - 328
  • [25] Counting and Sampling Models in First-Order Logic
    Kuzelka, Ondrej
    PROCEEDINGS OF THE THIRTY-SECOND INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, IJCAI 2023, 2023, : 7020 - 7025
  • [26] First-order queries on databases embedded in an infinite structure
    Otto, M
    VandenBussche, J
    INFORMATION PROCESSING LETTERS, 1996, 60 (01) : 37 - 41
  • [27] EXECUTABLE FIRST-ORDER QUERIES IN THE LOGIC OF INFORMATION FLOWS ∗
    Aamer, Heba A.
    Bogaerts, Bart
    Surinx, Dimitri
    Ternovska, Eugenia
    Van Den Bussche, Jan
    LOGICAL METHODS IN COMPUTER SCIENCE, 2024, 20 (02)
  • [28] Decidability of first-order logic queries over views
    Bailey, J
    Dong, GZ
    DATABASE THEORY - ICDT'99, 1999, 1540 : 83 - 99
  • [29] FIRST-ORDER QUERIES ON CLASSES OF STRUCTURES WITH BOUNDED EXPANSION
    Kazana, Wojciech
    Segoufin, Luc
    LOGICAL METHODS IN COMPUTER SCIENCE, 2020, 16 (01)
  • [30] ON COMPILING QUERIES IN RECURSIVE FIRST-ORDER DATABASES.
    Henschen, Lawrence J.
    Naqvi, Shamim A.
    1600, (31):