Computing Range Consistent Answers to Aggregation Queries via Rewriting

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Khalfioui, Aziz Amezian El, Wijsen, Jef
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912013129613312
author Khalfioui, Aziz Amezian El
Wijsen, Jef
author_facet Khalfioui, Aziz Amezian El
Wijsen, Jef
contents We consider the problem of answering conjunctive queries with aggregation on database instances that may violate primary key constraints. In SQL, these queries follow the SELECT-FROM-WHERE-GROUP BY format, where the WHERE-clause involves a conjunction of equalities, and the SELECT-clause can incorporate aggregate operators like MAX, MIN, SUM, AVG, or COUNT. Repairs of a database instance are defined as inclusion-maximal subsets that satisfy all primary keys. For a given query, our primary objective is to identify repairs that yield the lowest aggregated value among all possible repairs. We particularly investigate queries for which this lowest aggregated value can be determined through a rewriting in first-order logic with aggregate operators.
format Preprint
id arxiv_https___arxiv_org_abs_2409_01648
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Computing Range Consistent Answers to Aggregation Queries via Rewriting
Khalfioui, Aziz Amezian El
Wijsen, Jef
Databases
We consider the problem of answering conjunctive queries with aggregation on database instances that may violate primary key constraints. In SQL, these queries follow the SELECT-FROM-WHERE-GROUP BY format, where the WHERE-clause involves a conjunction of equalities, and the SELECT-clause can incorporate aggregate operators like MAX, MIN, SUM, AVG, or COUNT. Repairs of a database instance are defined as inclusion-maximal subsets that satisfy all primary keys. For a given query, our primary objective is to identify repairs that yield the lowest aggregated value among all possible repairs. We particularly investigate queries for which this lowest aggregated value can be determined through a rewriting in first-order logic with aggregate operators.
title Computing Range Consistent Answers to Aggregation Queries via Rewriting
topic Databases
url https://arxiv.org/abs/2409.01648