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.
翻译:连续询问主要关键和无自join共交质的问题近年来已经进行了深入的研究,现在人们已经很好地理解了。 在本文中,我们研究了这一问题的延伸。 我们考虑的询问在对完全共交质询问的答案的指定( 可能的复合) 列中计算每个值的倍数。 在数据库修复的设置中,我们采用了[ Arenas 等人, ICDT 2001] 的语义,该词的语义在计算这些计数时上下下下下方和上方界限,其界限覆盖了所有的修理。 Ariel Fuxman在其博士论文中定义了一组综合询问,称为C_ Forest, 其计算方法是执行两个一阶查询( 下界查询, 上界查询),然后简单计数。 我们在计算时使用了“ 有区别的计算” 术语。 一个自然的问题是, C_ 森林是否包含所有自jo的自相连接的查询, 承认有分歧的计数。 我们否定地回答这个问题。 我们定义了一个新的自学类询问, 我们只进行自定义了自学式的自定义。