Consistent Query Answering for Primary Keys and Conjunctive Queries with Counting

The problem of consistent query answering for primary keys and self-join-free conjunctive queries has been intensively studied in recent years and is by now well understood. In this paper, we study an extension of this problem with counting. The queries we consider count how many times each value occurs in a designated (possibly composite) column of an answer to a full conjunctive query. In a setting of database repairs, we adopt the semantics of [Arenas et al., ICDT 2001] which computes tight lower and upper bounds on these counts, where the bounds are taken over all repairs. Ariel Fuxman defined in his PhD thesis a syntactic class of queries, called C_forest, for which this computation can be done by executing two first-order queries (one for lower bounds, and one for upper bounds) followed by simple counting steps. We use the term "parsimonious counting" for this computation. A natural question is whether C_forest contains all self-join-free conjunctive queries that admit parsimonious counting. We answer this question negatively. We define a new syntactic class of queries, called C_parsimony, and prove that it contains all (and only) self-join-free conjunctive queries that admit parsimonious counting.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/17/2021

Counting Database Repairs Entailing a Query: The Case of Functional Dependencies

A key task in the context of consistent query answering is to count the ...
research
09/21/2023

A Dichotomy in the Complexity of Consistent Query Answering for Two Atom Queries With Self-Join

We consider the dichotomy conjecture for consistent query answering unde...
research
10/08/2018

Consistent Query Answering for Primary Keys in Logspace

We study the complexity of consistent query answering on databases that ...
research
06/21/2019

Learning to Sample: Counting with Complex Queries

In this paper we present a suite of methods to efficiently estimate coun...
research
05/12/2020

Counting Query Answers over a DL-Lite Knowledge Base (extended version)

Counting answers to a query is an operation supported by virtually all d...
research
06/24/2023

Join Size Bounds using Lp-Norms on Degree Sequences

Estimating the output size of a join query is a fundamental yet longstan...
research
03/12/2020

Topology Dependent Bounds For FAQs

In this paper, we prove topology dependent bounds on the number of round...

Please sign up or login with your details

Forgot password? Click here to reset