Computing Range Consistent Answers to Aggregation Queries via Rewriting
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 29 references indexed in Scilit:
- Counting and enumerating preferred database repairsTheoretical Computer Science, 2020
- Consistent Query Answering for Primary Keys in DatalogTheory of Computing Systems, 2020
- A dichotomy in the complexity of counting database repairsJournal of Computer and System Sciences, 2013
- Certain conjunctive query answering in first-order logicACM Transactions on Database Systems, 2012
- Prioritized repairing and consistent query answering in relational databasesAnnals of Mathematics and Artificial Intelligence, 2012
- Complexity of conservative constraint satisfaction problemsACM Transactions on Computational Logic, 2011
- On the first-order expressibility of computing certain answers to conjunctive queries over uncertain databases2010
- The complexity and approximation of fixing numerical attributes in databases under integrity constraintsInformation Systems, 2008
- Rewriting queries with arbitrary aggregation functions using viewsACM Transactions on Database Systems, 2006
- Scalar aggregation in inconsistent databasesTheoretical Computer Science, 2003