Consistent Query Answering Jan Chomicki University at Buffalo - - PowerPoint PPT Presentation

consistent query answering
SMART_READER_LITE
LIVE PREVIEW

Consistent Query Answering Jan Chomicki University at Buffalo - - PowerPoint PPT Presentation

Consistent Query Answering Jan Chomicki University at Buffalo October 2017 Jan Chomicki University at Buffalo CQA October 2017 1 / 34 Table of contents Motivation 1 Basics 2 Computing CQA 3 Computational Complexity 4 Dichotomy 5


slide-1
SLIDE 1

Consistent Query Answering

Jan Chomicki University at Buffalo October 2017

Jan Chomicki University at Buffalo CQA October 2017 1 / 34

slide-2
SLIDE 2

Table of contents

1

Motivation

2

Basics

3

Computing CQA

4

Computational Complexity

5

Dichotomy

6

Variants of CQA

7

Conclusions

Jan Chomicki University at Buffalo CQA October 2017 2 / 34

slide-3
SLIDE 3

Integrity constraints (dependencies)

Database instance D:

a finite first-order structure the information about the world l

Jan Chomicki University at Buffalo CQA October 2017 3 / 34

slide-4
SLIDE 4

Integrity constraints (dependencies)

Database instance D:

a finite first-order structure the information about the world l

Integrity constraints IC

first-order logic formulas the properties of the world

Jan Chomicki University at Buffalo CQA October 2017 3 / 34

slide-5
SLIDE 5

Integrity constraints (dependencies)

Database instance D:

a finite first-order structure the information about the world l

Integrity constraints IC

first-order logic formulas the properties of the world

Satisfaction of constraints: D | = IC

Formula satisfaction in a first-order structure.

Jan Chomicki University at Buffalo CQA October 2017 3 / 34

slide-6
SLIDE 6

Integrity constraints (dependencies)

Database instance D:

a finite first-order structure the information about the world l

Integrity constraints IC

first-order logic formulas the properties of the world

Satisfaction of constraints: D | = IC

Formula satisfaction in a first-order structure. Consistent database: D | = IC Name City Salary Gates Redmond 30M Musk Palo Alto 10M Name → City Salary

Jan Chomicki University at Buffalo CQA October 2017 3 / 34

slide-7
SLIDE 7

Integrity constraints (dependencies)

Database instance D:

a finite first-order structure the information about the world l

Integrity constraints IC

first-order logic formulas the properties of the world

Satisfaction of constraints: D | = IC

Formula satisfaction in a first-order structure. Consistent database: D | = IC Name City Salary Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Inconsistent database: D | = IC Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary

Jan Chomicki University at Buffalo CQA October 2017 3 / 34

slide-8
SLIDE 8

Whence Inconsistency?

Sources of inconsistency:

integration of independent data sources with overlapping data time lag of updates (eventual consistency) unenforced integrity constraints

Jan Chomicki University at Buffalo CQA October 2017 4 / 34

slide-9
SLIDE 9

Whence Inconsistency?

Sources of inconsistency:

integration of independent data sources with overlapping data time lag of updates (eventual consistency) unenforced integrity constraints

Eliminating inconsistency?

not enough information, time, or money difficult, impossible or undesirable unnecessary: queries may be insensitive to inconsistency

Jan Chomicki University at Buffalo CQA October 2017 4 / 34

slide-10
SLIDE 10

Whence Inconsistency?

Sources of inconsistency:

integration of independent data sources with overlapping data time lag of updates (eventual consistency) unenforced integrity constraints

Eliminating inconsistency?

not enough information, time, or money difficult, impossible or undesirable unnecessary: queries may be insensitive to inconsistency

Living with inconsistency?

ignoring inconsistency redefining query answers

Jan Chomicki University at Buffalo CQA October 2017 4 / 34

slide-11
SLIDE 11

Whence Inconsistency?

Sources of inconsistency:

integration of independent data sources with overlapping data time lag of updates (eventual consistency) unenforced integrity constraints

Eliminating inconsistency?

not enough information, time, or money difficult, impossible or undesirable unnecessary: queries may be insensitive to inconsistency

Living with inconsistency?

ignoring inconsistency redefining query answers

CQA Jan Chomicki University at Buffalo CQA October 2017 4 / 34

slide-12
SLIDE 12

Eliminating inconsistency

Dropping conflicting tuples

information is lost

Jan Chomicki University at Buffalo CQA October 2017 5 / 34

slide-13
SLIDE 13

Eliminating inconsistency

Dropping conflicting tuples

information is lost Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary

Jan Chomicki University at Buffalo CQA October 2017 5 / 34

slide-14
SLIDE 14

Eliminating inconsistency

Dropping conflicting tuples

information is lost Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name Musk SELECT Name FROM Employee WHERE Salary ≤ 25M

Jan Chomicki University at Buffalo CQA October 2017 5 / 34

slide-15
SLIDE 15

Eliminating inconsistency

Dropping conflicting tuples

information is lost Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name Musk SELECT Name FROM Employee WHERE Salary ≥ 10M

Jan Chomicki University at Buffalo CQA October 2017 5 / 34

slide-16
SLIDE 16

Ignoring Inconsistency

Jan Chomicki University at Buffalo CQA October 2017 6 / 34

slide-17
SLIDE 17

Ignoring Inconsistency

Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary

Jan Chomicki University at Buffalo CQA October 2017 6 / 34

slide-18
SLIDE 18

Ignoring Inconsistency

Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary SELECT Name FROM Employee WHERE Salary ≤ 25M

Jan Chomicki University at Buffalo CQA October 2017 6 / 34

slide-19
SLIDE 19

Ignoring Inconsistency

Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name Gates Musk SELECT Name FROM Employee WHERE Salary ≤ 25M

Jan Chomicki University at Buffalo CQA October 2017 6 / 34

slide-20
SLIDE 20

Ignoring Inconsistency

Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name Gates Musk SELECT Name FROM Employee WHERE Salary ≤ 25M Query results not reliable.

Jan Chomicki University at Buffalo CQA October 2017 6 / 34

slide-21
SLIDE 21

The Impact of Inconsistency on Queries

Traditional view

query results defined irrespective of integrity constraints query evaluation may be optimized in the presence of integrity constraints (semantic query optimization)

Jan Chomicki University at Buffalo CQA October 2017 7 / 34

slide-22
SLIDE 22

The Impact of Inconsistency on Queries

Traditional view

query results defined irrespective of integrity constraints query evaluation may be optimized in the presence of integrity constraints (semantic query optimization)

Our view

inconsistency leads to uncertainty query results may depend on integrity constraint satisfaction inconsistency may be eliminated (repairing) or tolerated (consistent query answering)

Jan Chomicki University at Buffalo CQA October 2017 7 / 34

slide-23
SLIDE 23

Database Repairs

Restoring consistency

insertion, deletion minimal change

Jan Chomicki University at Buffalo CQA October 2017 8 / 34

slide-24
SLIDE 24

Database Repairs

Restoring consistency

insertion, deletion minimal change Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary

Jan Chomicki University at Buffalo CQA October 2017 8 / 34

slide-25
SLIDE 25

Database Repairs

Restoring consistency

insertion, deletion minimal change Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name City Salary Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name City Salary Gates Redmond 20M Musk Palo Alto 10M Name → City Salary

Jan Chomicki University at Buffalo CQA October 2017 8 / 34

slide-26
SLIDE 26

Consistent Query Answering

Consistent query answer

query answer obtained in every repair database not changed (Arenas, Bertossi, Ch. [ABC99])

Jan Chomicki University at Buffalo CQA October 2017 9 / 34

slide-27
SLIDE 27

Consistent Query Answering

Consistent query answer

query answer obtained in every repair database not changed (Arenas, Bertossi, Ch. [ABC99]) Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary

Jan Chomicki University at Buffalo CQA October 2017 9 / 34

slide-28
SLIDE 28

Consistent Query Answering

Consistent query answer

query answer obtained in every repair database not changed (Arenas, Bertossi, Ch. [ABC99]) Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name Musk SELECT Name FROM Employee WHERE Salary ≤ 25M

Jan Chomicki University at Buffalo CQA October 2017 9 / 34

slide-29
SLIDE 29

Consistent Query Answering

Consistent query answer

query answer obtained in every repair database not changed (Arenas, Bertossi, Ch. [ABC99]) Name City Salary Gates Redmond 20M Gates Redmond 30M Musk Palo Alto 10M Name → City Salary Name Gates Musk SELECT Name FROM Employee WHERE Salary ≥ 10M

Jan Chomicki University at Buffalo CQA October 2017 9 / 34

slide-30
SLIDE 30

Research Goals

Formal definition

What constitutes reliable (consistent) information in an inconsistent database.

Jan Chomicki University at Buffalo CQA October 2017 10 / 34

slide-31
SLIDE 31

Research Goals

Formal definition

What constitutes reliable (consistent) information in an inconsistent database.

Algorithms

How to compute consistent information.

Jan Chomicki University at Buffalo CQA October 2017 10 / 34

slide-32
SLIDE 32

Research Goals

Formal definition

What constitutes reliable (consistent) information in an inconsistent database.

Algorithms

How to compute consistent information.

Computational complexity analysis

tractable vs. intractable classes of queries and integrity constraints tradeoffs: complexity vs. expressiveness.

Jan Chomicki University at Buffalo CQA October 2017 10 / 34

slide-33
SLIDE 33

Research Goals

Formal definition

What constitutes reliable (consistent) information in an inconsistent database.

Algorithms

How to compute consistent information.

Computational complexity analysis

tractable vs. intractable classes of queries and integrity constraints tradeoffs: complexity vs. expressiveness.

Implementation

preferably using DBMS technology.

Jan Chomicki University at Buffalo CQA October 2017 10 / 34

slide-34
SLIDE 34

Research Goals

Formal definition

What constitutes reliable (consistent) information in an inconsistent database.

Algorithms

How to compute consistent information.

Computational complexity analysis

tractable vs. intractable classes of queries and integrity constraints tradeoffs: complexity vs. expressiveness.

Implementation

preferably using DBMS technology.

Applications

data cleaning

Jan Chomicki University at Buffalo CQA October 2017 10 / 34

slide-35
SLIDE 35

Basic Notions

Repair D′ of a database D w.r.t. the integrity constraints IC:

D′: over the same schema as D D′ | = IC symmetric difference between D and D′ is minimal.

Jan Chomicki University at Buffalo CQA October 2017 11 / 34

slide-36
SLIDE 36

Basic Notions

Repair D′ of a database D w.r.t. the integrity constraints IC:

D′: over the same schema as D D′ | = IC symmetric difference between D and D′ is minimal.

Consistent query answer to a query Q in D w.r.t. IC:

an element of the result of Q in every repair of D w.r.t. IC.

Jan Chomicki University at Buffalo CQA October 2017 11 / 34

slide-37
SLIDE 37

Basic Notions

Repair D′ of a database D w.r.t. the integrity constraints IC:

D′: over the same schema as D D′ | = IC symmetric difference between D and D′ is minimal.

Consistent query answer to a query Q in D w.r.t. IC:

an element of the result of Q in every repair of D w.r.t. IC. Another incarnation of the idea of sure/certain query answers (Lipski [Jr.79]).

Jan Chomicki University at Buffalo CQA October 2017 11 / 34

slide-38
SLIDE 38

A Logical Aside

Logical inconsistency

inconsistent database: database facts together with integrity constraints form an inconsistent set of formulas trivialization of reasoning does not occur because constraints are not used in relational query evaluation.

Jan Chomicki University at Buffalo CQA October 2017 12 / 34

slide-39
SLIDE 39

Exponentially many repairs

Example relation R(A, B)

violates the dependency A → B has 2n repairs. A B a1 b1 a1 c1 a2 b2 a2 c2 · · · an bn an cn A → B

Jan Chomicki University at Buffalo CQA October 2017 13 / 34

slide-40
SLIDE 40

Exponentially many repairs

Example relation R(A, B)

violates the dependency A → B has 2n repairs. A B a1 b1 a1 c1 a2 b2 a2 c2 · · · an bn an cn A → B It is impractical to apply the definition of CQA directly.

Jan Chomicki University at Buffalo CQA October 2017 13 / 34

slide-41
SLIDE 41

Computing Consistent Query Answers

Query Rewriting

Given a query Q and a set of integrity constraints IC, build a query QIC such that for every database instance D the set of answers to QIC in D = the set of consistent answers to Q in D w.r.t. IC.

Jan Chomicki University at Buffalo CQA October 2017 14 / 34

slide-42
SLIDE 42

Computing Consistent Query Answers

Query Rewriting

Given a query Q and a set of integrity constraints IC, build a query QIC such that for every database instance D the set of answers to QIC in D = the set of consistent answers to Q in D w.r.t. IC.

Representing all repairs

Given IC and D:

1

build a space-efficient representation of all repairs of D w.r.t. IC

2

use this representation to answer (many) queries.

Jan Chomicki University at Buffalo CQA October 2017 14 / 34

slide-43
SLIDE 43

Computing Consistent Query Answers

Query Rewriting

Given a query Q and a set of integrity constraints IC, build a query QIC such that for every database instance D the set of answers to QIC in D = the set of consistent answers to Q in D w.r.t. IC.

Representing all repairs

Given IC and D:

1

build a space-efficient representation of all repairs of D w.r.t. IC

2

use this representation to answer (many) queries.

Logic programs

Given IC, D and Q:

1

build a logic program PIC,D whose models are the repairs of D w.r.t. IC

2

build a logic program PQ expressing Q

3

use a logic programming system that computes the query atoms present in all models of PIC,D ∪ PQ.

Jan Chomicki University at Buffalo CQA October 2017 14 / 34

slide-44
SLIDE 44

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-45
SLIDE 45

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-46
SLIDE 46

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-47
SLIDE 47

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-48
SLIDE 48

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Denial constraints

∀. ¬(A1 ∧ · · · ∧ An)

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-49
SLIDE 49

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Denial constraints

∀. ¬(A1 ∧ · · · ∧ An)

Example

∀. ¬(M(n, s, m)∧M(m, t, w)∧s > t)

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-50
SLIDE 50

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Denial constraints

∀. ¬(A1 ∧ · · · ∧ An)

Example

∀. ¬(M(n, s, m)∧M(m, t, w)∧s > t)

Functional dependencies

X → Y : key dependency: Y = U

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-51
SLIDE 51

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Denial constraints

∀. ¬(A1 ∧ · · · ∧ An)

Example

∀. ¬(M(n, s, m)∧M(m, t, w)∧s > t)

Functional dependencies

X → Y : key dependency: Y = U

Example primary-key dependency

Name → Address Salary

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-52
SLIDE 52

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Denial constraints

∀. ¬(A1 ∧ · · · ∧ An)

Example

∀. ¬(M(n, s, m)∧M(m, t, w)∧s > t)

Functional dependencies

X → Y : key dependency: Y = U

Example primary-key dependency

Name → Address Salary

Inclusion dependencies

R[X] ⊆ S[Y ]: a foreign key constraint: key Y

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-53
SLIDE 53

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Denial constraints

∀. ¬(A1 ∧ · · · ∧ An)

Example

∀. ¬(M(n, s, m)∧M(m, t, w)∧s > t)

Functional dependencies

X → Y : key dependency: Y = U

Example primary-key dependency

Name → Address Salary

Inclusion dependencies

R[X] ⊆ S[Y ]: a foreign key constraint: key Y

Example foreign key constraint

M[Manager] ⊆ M[Name]

Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-54
SLIDE 54

Constraint classes

Universal constraints

∀. A1 ∧ · · · ∧ An ⇒ B1 ∨ · · · ∨ Bm

Example

∀. Par(x, y) ⇒ Ma(x, y) ∨ Fa(x, y)

Tuple-generating dependencies

∀. A1 ∧ · · · ∧ An ⇒ B

Example

∀. Ma(x, y) ∧ Ma(x, z) ⇒ Sib(y, z)

Denial constraints

∀. ¬(A1 ∧ · · · ∧ An)

Example

∀. ¬(M(n, s, m)∧M(m, t, w)∧s > t)

Functional dependencies

X → Y : key dependency: Y = U

Example primary-key dependency

Name → Address Salary

Inclusion dependencies

R[X] ⊆ S[Y ]: a foreign key constraint: key Y

Example foreign key constraint

M[Manager] ⊆ M[Name]

Hyper Jan Chomicki University at Buffalo CQA October 2017 15 / 34

slide-55
SLIDE 55

Query Rewriting

Building queries that compute CQAs

relational calculus (algebra) ❀ relational calculus (algebra) SQL ❀ SQL leads to PTIME data complexity

Jan Chomicki University at Buffalo CQA October 2017 16 / 34

slide-56
SLIDE 56

Query Rewriting

Building queries that compute CQAs

relational calculus (algebra) ❀ relational calculus (algebra) SQL ❀ SQL leads to PTIME data complexity

Query

Emp(x, y, z)

Jan Chomicki University at Buffalo CQA October 2017 16 / 34

slide-57
SLIDE 57

Query Rewriting

Building queries that compute CQAs

relational calculus (algebra) ❀ relational calculus (algebra) SQL ❀ SQL leads to PTIME data complexity

Query

Emp(x, y, z)

Integrity constraint

∀ x, y, z, y ′, z′. ¬Emp(x, y, z) ∨ ¬Emp(x, y ′, z′) ∨ z = z′

Jan Chomicki University at Buffalo CQA October 2017 16 / 34

slide-58
SLIDE 58

Query Rewriting

Building queries that compute CQAs

relational calculus (algebra) ❀ relational calculus (algebra) SQL ❀ SQL leads to PTIME data complexity

Query

Emp(x, y, z)

Integrity constraint

∀ x, y, z, y ′, z′. ¬Emp(x, y, z) ∨ ¬Emp(x, y ′, z′) ∨ z = z′

Jan Chomicki University at Buffalo CQA October 2017 16 / 34

slide-59
SLIDE 59

Query Rewriting

Building queries that compute CQAs

relational calculus (algebra) ❀ relational calculus (algebra) SQL ❀ SQL leads to PTIME data complexity

Query

Emp(x, y, z)

Integrity constraint

∀ x, y, z, y ′, z′. ¬Emp(x, y, z) ∨ ¬Emp(x, y ′, z′) ∨ z = z′

Rewritten query

Emp(x, y, z) ∧ ∀ y ′, z′. ¬Emp(x, y ′, z′) ∨ z = z′

Jan Chomicki University at Buffalo CQA October 2017 16 / 34

slide-60
SLIDE 60

The Scope of Query Rewriting

(Arenas, Bertossi, Ch. [ABC99])

Integrity constraints: binary universal Queries: conjunctions of literals (relational algebra: σ, ×, −)

Jan Chomicki University at Buffalo CQA October 2017 17 / 34

slide-61
SLIDE 61

The Scope of Query Rewriting

(Arenas, Bertossi, Ch. [ABC99])

Integrity constraints: binary universal Queries: conjunctions of literals (relational algebra: σ, ×, −)

(Fuxman, Miller [FM07])

Integrity constraints: primary key functional dependencies Queries: Cforest

a class of conjunctive queries (π, σ, ×) no cycles no non-key or non-full joins no repeated relation symbols no built-ins

Jan Chomicki University at Buffalo CQA October 2017 17 / 34

slide-62
SLIDE 62

SQL Rewriting

SQL query

SELECT Name FROM Emp WHERE Salary ≥ 10K

Jan Chomicki University at Buffalo CQA October 2017 18 / 34

slide-63
SLIDE 63

SQL Rewriting

SQL query

SELECT Name FROM Emp WHERE Salary ≥ 10K

SQL rewritten query

SELECT e1.Name FROM Emp e1 WHERE e1.Salary ≥ 10K AND NOT EXISTS (SELECT * FROM EMPLOYEE e2 WHERE e2.Name = e1.Name AND e2.Salary < 10K)

Jan Chomicki University at Buffalo CQA October 2017 18 / 34

slide-64
SLIDE 64

SQL Rewriting

SQL query

SELECT Name FROM Emp WHERE Salary ≥ 10K

SQL rewritten query

SELECT e1.Name FROM Emp e1 WHERE e1.Salary ≥ 10K AND NOT EXISTS (SELECT * FROM EMPLOYEE e2 WHERE e2.Name = e1.Name AND e2.Salary < 10K)

(Fuxman, Fazli, Miller [FM05])

ConQuer: a system for computing CQAs conjunctive (Cforest) and aggregation SQL queries databases can be annotated with consistency indicators tested on TPC-H queries and medium-size databases

Jan Chomicki University at Buffalo CQA October 2017 18 / 34

slide-65
SLIDE 65

Conflict Hypergraph

Vertices

Tuples in the database. (Gates, Redmond, 20M) (Gates, Redmond, 30M) (Musk, Palo Alto, 10M)

Jan Chomicki University at Buffalo CQA October 2017 19 / 34

slide-66
SLIDE 66

Conflict Hypergraph

Vertices

Tuples in the database.

Edges

Minimal sets of tuples violating a constraint. (Gates, Redmond, 20M) (Gates, Redmond, 30M) (Musk, Palo Alto, 10M)

Jan Chomicki University at Buffalo CQA October 2017 19 / 34

slide-67
SLIDE 67

Conflict Hypergraph

Vertices

Tuples in the database.

Edges

Minimal sets of tuples violating a constraint.

Repairs

Maximal independent sets in the conflict graph. (Gates, Redmond, 20M) (Gates, Redmond, 30M) (Musk, Palo Alto, 10M)

Jan Chomicki University at Buffalo CQA October 2017 19 / 34

slide-68
SLIDE 68

Conflict Hypergraph

Vertices

Tuples in the database.

Edges

Minimal sets of tuples violating a constraint.

Repairs

Maximal independent sets in the conflict graph. (Gates, Redmond, 20M) (Gates, Redmond, 30M) (Musk, Palo Alto, 10M)

Jan Chomicki University at Buffalo CQA October 2017 19 / 34

slide-69
SLIDE 69

Conflict Hypergraph

Vertices

Tuples in the database.

Edges

Minimal sets of tuples violating a constraint.

Repairs

Maximal independent sets in the conflict graph. (Gates, Redmond, 20M) (Gates, Redmond, 30M) (Musk, Palo Alto, 10M) Representation applicable only to denial constraints.

Jan Chomicki University at Buffalo CQA October 2017 19 / 34

slide-70
SLIDE 70

Computing CQAs Using Conflict Hypergraphs

Algorithm HProver

INPUT: query Φ a disjunction of ground literals, conflict hypergraph G OUTPUT: is Φ false in some repair of D w.r.t. IC? ALGORITHM:

1

¬Φ = P1(t1) ∧ · · · ∧ Pm(tm) ∧ ¬Pm+1(tm+1) ∧ · · · ∧ ¬Pn(tn)

2

find a consistent set of facts S such that

S ⊇ {P1(t1), . . . , Pm(tm)} for every fact A ∈ {Pm+1(tm+1), . . . , Pn(tn)}: A ∈ D or there is an edge E = {A, B1, . . . , Bm} in G and S ⊇ {B1, . . . , Bm}.

Jan Chomicki University at Buffalo CQA October 2017 20 / 34

slide-71
SLIDE 71

Computing CQAs Using Conflict Hypergraphs

Algorithm HProver

INPUT: query Φ a disjunction of ground literals, conflict hypergraph G OUTPUT: is Φ false in some repair of D w.r.t. IC? ALGORITHM:

1

¬Φ = P1(t1) ∧ · · · ∧ Pm(tm) ∧ ¬Pm+1(tm+1) ∧ · · · ∧ ¬Pn(tn)

2

find a consistent set of facts S such that

S ⊇ {P1(t1), . . . , Pm(tm)} for every fact A ∈ {Pm+1(tm+1), . . . , Pn(tn)}: A ∈ D or there is an edge E = {A, B1, . . . , Bm} in G and S ⊇ {B1, . . . , Bm}.

(Ch., Marcinkowski, Staworko [CMS04])

Hippo: a system for computing CQAs in PTIME quantifier-free queries and denial constraints

  • nly edges of the conflict hypergraph are kept in main memory
  • ptimization can eliminate many (sometimes all) database accesses in HProver

tested for medium-size synthetic databases

Jan Chomicki University at Buffalo CQA October 2017 20 / 34

slide-72
SLIDE 72

Logic programs

Specifying repairs as answer sets of logic programs

(Arenas, Bertossi, Ch. [ABC03]) (Greco, Greco, Zumpano [GGZ03]) (Cal` ı, Lembo, Rosati [CLR03b])

Jan Chomicki University at Buffalo CQA October 2017 21 / 34

slide-73
SLIDE 73

Logic programs

Specifying repairs as answer sets of logic programs

(Arenas, Bertossi, Ch. [ABC03]) (Greco, Greco, Zumpano [GGZ03]) (Cal` ı, Lembo, Rosati [CLR03b])

Example

emp(x, y, z) ← empD(x, y, z), not dubious emp(x, y, z). dubious emp(x, y, z) ← empD(x, y, z), emp(x, y ′, z′), y = y ′. dubious emp(x, y, z) ← empD(x, y, z), emp(x, y ′, z′), z = z′.

Jan Chomicki University at Buffalo CQA October 2017 21 / 34

slide-74
SLIDE 74

Logic programs

Specifying repairs as answer sets of logic programs

(Arenas, Bertossi, Ch. [ABC03]) (Greco, Greco, Zumpano [GGZ03]) (Cal` ı, Lembo, Rosati [CLR03b])

Example

emp(x, y, z) ← empD(x, y, z), not dubious emp(x, y, z). dubious emp(x, y, z) ← empD(x, y, z), emp(x, y ′, z′), y = y ′. dubious emp(x, y, z) ← empD(x, y, z), emp(x, y ′, z′), z = z′.

Answer sets

{emp(Gates, Redmond, 20M), emp(Musk, PaloAlto, 10M), . . .} {emp(Gates, Redmond, 30M), emp(Musk, PaloAlto, 10M), . . .}

Jan Chomicki University at Buffalo CQA October 2017 21 / 34

slide-75
SLIDE 75

Logic Programs for computing CQAs

Logic Programs

disjunction and classical negation checking whether an atom is in all answer sets is Πp

2-complete

dlv, smodels, . . .

Jan Chomicki University at Buffalo CQA October 2017 22 / 34

slide-76
SLIDE 76

Logic Programs for computing CQAs

Logic Programs

disjunction and classical negation checking whether an atom is in all answer sets is Πp

2-complete

dlv, smodels, . . .

Scope

arbitrary first-order queries and universal constraints approach unlikely to yield tractable cases

Jan Chomicki University at Buffalo CQA October 2017 22 / 34

slide-77
SLIDE 77

Logic Programs for computing CQAs

Logic Programs

disjunction and classical negation checking whether an atom is in all answer sets is Πp

2-complete

dlv, smodels, . . .

Scope

arbitrary first-order queries and universal constraints approach unlikely to yield tractable cases

INFOMIX (Eiter et al. [EFGL03])

combines CQA with data integration (GAV) uses dlv for repair computations

  • ptimization techniques: localization, factorization

tested on small-to-medium-size legacy databases

Jan Chomicki University at Buffalo CQA October 2017 22 / 34

slide-78
SLIDE 78

Logic Programs for computing CQAs

Logic Programs

disjunction and classical negation checking whether an atom is in all answer sets is Πp

2-complete

dlv, smodels, . . .

Scope

arbitrary first-order queries and universal constraints approach unlikely to yield tractable cases

INFOMIX (Eiter et al. [EFGL03])

combines CQA with data integration (GAV) uses dlv for repair computations

  • ptimization techniques: localization, factorization

tested on small-to-medium-size legacy databases

complexity Jan Chomicki University at Buffalo CQA October 2017 22 / 34

slide-79
SLIDE 79

Co-NP-completeness of CQA

Theorem (Ch., Marcinkowski [CM05a])

For primary-key functional dependencies and conjunctive queries, consistent query answering is data-complete for co-NP.

Jan Chomicki University at Buffalo CQA October 2017 23 / 34

slide-80
SLIDE 80

Co-NP-completeness of CQA

Theorem (Ch., Marcinkowski [CM05a])

For primary-key functional dependencies and conjunctive queries, consistent query answering is data-complete for co-NP.

Proof.

Membership: V is a repair iff V | = IC and W | = IC if W = V ∪ M. Co-NP-hardness: reduction from MONOTONE 3-SAT.

1

Positive clauses β1 = φ1 ∧ · · · ∧ φm, negative clauses β2 = ψm+1 ∧ · · · ∧ ψl.

2

Database D contains two binary relations R(A, B) and S(A, B):

R(i, p) if variable p occurs in φi, i = 1, . . . , m. S(i, p) if variable p occurs in ψi, i = m + 1, . . . , l.

3

A is the primary key of both R and S.

4

Query Q ≡ ∃x, y, z.

  • R(x, y) ∧ S(z, y)
  • .

5

There is an assignment which satisfies β1 ∧ β2 iff there exists a repair in which Q is false.

Jan Chomicki University at Buffalo CQA October 2017 23 / 34

slide-81
SLIDE 81

Co-NP-completeness of CQA

Theorem (Ch., Marcinkowski [CM05a])

For primary-key functional dependencies and conjunctive queries, consistent query answering is data-complete for co-NP.

Proof.

Membership: V is a repair iff V | = IC and W | = IC if W = V ∪ M. Co-NP-hardness: reduction from MONOTONE 3-SAT.

1

Positive clauses β1 = φ1 ∧ · · · ∧ φm, negative clauses β2 = ψm+1 ∧ · · · ∧ ψl.

2

Database D contains two binary relations R(A, B) and S(A, B):

R(i, p) if variable p occurs in φi, i = 1, . . . , m. S(i, p) if variable p occurs in ψi, i = m + 1, . . . , l.

3

A is the primary key of both R and S.

4

Query Q ≡ ∃x, y, z.

  • R(x, y) ∧ S(z, y)
  • .

5

There is an assignment which satisfies β1 ∧ β2 iff there exists a repair in which Q is false. Q does not belong to Cforest.

Jan Chomicki University at Buffalo CQA October 2017 23 / 34

slide-82
SLIDE 82

Data complexity of CQA

Primary keys Arbitrary keys Denial Universal σ, ×, − σ, ×, −, ∪ σ, π σ, π, × σ, π, ×, −, ∪

Jan Chomicki University at Buffalo CQA October 2017 24 / 34

slide-83
SLIDE 83

Data complexity of CQA

Primary keys Arbitrary keys Denial Universal σ, ×, − PTIME PTIME PTIME: binary σ, ×, −, ∪ σ, π σ, π, × σ, π, ×, −, ∪ (Arenas, Bertossi, Ch. [ABC99])

Jan Chomicki University at Buffalo CQA October 2017 24 / 34

slide-84
SLIDE 84

Data complexity of CQA

Primary keys Arbitrary keys Denial Universal σ, ×, − PTIME PTIME PTIME PTIME: binary σ, ×, −, ∪ PTIME PTIME PTIME σ, π PTIME co-NPC co-NPC σ, π, × co-NPC co-NPC co-NPC σ, π, ×, −, ∪ co-NPC co-NPC co-NPC (Arenas, Bertossi, Ch. [ABC99]) (Ch., Marcinkowski [CM05a])

Jan Chomicki University at Buffalo CQA October 2017 24 / 34

slide-85
SLIDE 85

Data complexity of CQA

Primary keys Arbitrary keys Denial Universal σ, ×, − PTIME PTIME PTIME PTIME: binary σ, ×, −, ∪ PTIME PTIME PTIME σ, π PTIME co-NPC co-NPC σ, π, × co-NPC co-NPC co-NPC PTIME: Cforest σ, π, ×, −, ∪ co-NPC co-NPC co-NPC (Arenas, Bertossi, Ch. [ABC99]) (Ch., Marcinkowski [CM05a]) (Fuxman, Miller [FM07])

Jan Chomicki University at Buffalo CQA October 2017 24 / 34

slide-86
SLIDE 86

Data complexity of CQA

Primary keys Arbitrary keys Denial Universal σ, ×, − PTIME PTIME PTIME PTIME: binary Πp

2-complete

σ, ×, −, ∪ PTIME PTIME PTIME Πp

2-complete

σ, π PTIME co-NPC co-NPC Πp

2-complete

σ, π, × co-NPC co-NPC co-NPC Πp

2-complete

PTIME: Cforest σ, π, ×, −, ∪ co-NPC co-NPC co-NPC Πp

2-complete

(Arenas, Bertossi, Ch. [ABC99]) (Ch., Marcinkowski [CM05a]) (Fuxman, Miller [FM07]) (Staworko, Ph.D., 2007), (Staworko, Ch., 2008):

quantifier-free queries co-NPC for full TGDs and denial constraints PTIME for acyclic full TGDs, join dependencies and denial constraints

Last Jan Chomicki University at Buffalo CQA October 2017 24 / 34

slide-87
SLIDE 87

Dichotomy

Complexity of self-join-free conjunctive queries (Koutris, Wijsen [KW17])

it can be decided whether or not CQA can be computed by a first-order query (and if so the corresponding SQL query is easily computable) computing CQA is either in PTIME or co-NP complete (and it can be decided which case applies)

Jan Chomicki University at Buffalo CQA October 2017 25 / 34

slide-88
SLIDE 88

The Explosion of Semantics

Tuple-based repairs

asymmetric treatment of insertion and deletion:

repairs by minimal deletions only (Ch., Marcinkowski [CM05a]): data possibly incorrect but complete repairs by minimal deletions and arbitrary insertions (Cal` ı, Lembo, Rosati [CLR03a]): data possibly incorrect and incomplete

minimal cardinality changes (Lopatenko, Bertossi [LB07]), more...

Jan Chomicki University at Buffalo CQA October 2017 26 / 34

slide-89
SLIDE 89

The Explosion of Semantics

Tuple-based repairs

asymmetric treatment of insertion and deletion:

repairs by minimal deletions only (Ch., Marcinkowski [CM05a]): data possibly incorrect but complete repairs by minimal deletions and arbitrary insertions (Cal` ı, Lembo, Rosati [CLR03a]): data possibly incorrect and incomplete

minimal cardinality changes (Lopatenko, Bertossi [LB07]), more...

Attribute-based repairs

repairs of minimum cost (Bohannon et al. [BFFR05]) checking existence of a repair of cost < K NP-complete.

Clean Last Jan Chomicki University at Buffalo CQA October 2017 26 / 34

slide-90
SLIDE 90

The Need for Attribute-based Repairing

Tuple-based repairing leads to information loss.

Jan Chomicki University at Buffalo CQA October 2017 27 / 34

slide-91
SLIDE 91

The Need for Attribute-based Repairing

Tuple-based repairing leads to information loss. EmpDept Name Dept Location John Sales Buffalo Mary Sales Toronto Name → Dept Dept → City

Jan Chomicki University at Buffalo CQA October 2017 27 / 34

slide-92
SLIDE 92

The Need for Attribute-based Repairing

Tuple-based repairing leads to information loss. EmpDept Name Dept Location John Sales Buffalo Mary Sales Toronto Name → Dept Dept → City Name Dept Location John Sales Buffalo Name → Dept Dept → City Name Dept Location Mary Sales Toronto Name → Dept Dept → City

Jan Chomicki University at Buffalo CQA October 2017 27 / 34

slide-93
SLIDE 93

Attribute-based Repairs through Tuple-based Repairs (Wijsen [Wij06])

Repair the lossless join decomposition: πName,Dept(EmpDept) ✶ πDept,Location(EmpDept)

Jan Chomicki University at Buffalo CQA October 2017 28 / 34

slide-94
SLIDE 94

Attribute-based Repairs through Tuple-based Repairs (Wijsen [Wij06])

Repair the lossless join decomposition: πName,Dept(EmpDept) ✶ πDept,Location(EmpDept) Name Dept Location John Sales Buffalo John Sales Toronto Mary Sales Buffalo Mary Sales Toronto Name → Dept Dept → City

Jan Chomicki University at Buffalo CQA October 2017 28 / 34

slide-95
SLIDE 95

Attribute-based Repairs through Tuple-based Repairs (Wijsen [Wij06])

Repair the lossless join decomposition: πName,Dept(EmpDept) ✶ πDept,Location(EmpDept) Name Dept Location John Sales Buffalo John Sales Toronto Mary Sales Buffalo Mary Sales Toronto Name → Dept Dept → City Name Dept Location John Sales Buffalo Mary Sales Buffalo Name → Dept Dept → City Name Dept Location John Sales Toronto Mary Sales Toronto Name → Dept Dept → City

Jan Chomicki University at Buffalo CQA October 2017 28 / 34

slide-96
SLIDE 96

Probabilistic framework for “dirty” databases

(Andritsos, Fuxman, Miller [AFM06])

potential duplicates identified and grouped into clusters worlds ≈ repairs: one tuple from each cluster world probability: product of tuple probabilities clean answers: in the query result in some (supporting) world clean answer probability: sum of the probabilities of supporting worlds

consistent answer: clean answer with probability 1

Jan Chomicki University at Buffalo CQA October 2017 29 / 34

slide-97
SLIDE 97

Probabilistic framework for “dirty” databases

(Andritsos, Fuxman, Miller [AFM06])

potential duplicates identified and grouped into clusters worlds ≈ repairs: one tuple from each cluster world probability: product of tuple probabilities clean answers: in the query result in some (supporting) world clean answer probability: sum of the probabilities of supporting worlds

consistent answer: clean answer with probability 1

Salaries with probabilities

EmpProb Name Salary Prob Gates 20M 0.7 Gates 30M 0.3 Musk 10M 0.5 Musk 20M 0.5 Name → Salary

Jan Chomicki University at Buffalo CQA October 2017 29 / 34

slide-98
SLIDE 98

Computing Clean Answers

SQL query

SELECT Name FROM EmpProb e WHERE e.Salary > 15M

Jan Chomicki University at Buffalo CQA October 2017 30 / 34

slide-99
SLIDE 99

Computing Clean Answers

SQL query

SELECT Name FROM EmpProb e WHERE e.Salary > 15M

SQL rewritten query

SELECT e.Name,SUM(e.Prob) FROM EmpProb e WHERE e.Salary > 15M GROUP BY e.Name

Jan Chomicki University at Buffalo CQA October 2017 30 / 34

slide-100
SLIDE 100

Computing Clean Answers

SQL query

SELECT Name FROM EmpProb e WHERE e.Salary > 15M

SQL rewritten query

SELECT e.Name,SUM(e.Prob) FROM EmpProb e WHERE e.Salary > 15M GROUP BY e.Name EmpProb Name Salary Prob Gates 20M 0.7 Gates 30M 0.3 Musk 10M 0.5 Musk 20M 0.5 Name → Salary

Jan Chomicki University at Buffalo CQA October 2017 30 / 34

slide-101
SLIDE 101

Computing Clean Answers

SQL query

SELECT Name FROM EmpProb e WHERE e.Salary > 15M

SQL rewritten query

SELECT e.Name,SUM(e.Prob) FROM EmpProb e WHERE e.Salary > 15M GROUP BY e.Name EmpProb Name Salary Prob Gates 20M 0.7 Gates 30M 0.3 Musk 10M 0.5 Musk 20M 0.5 Name → Salary SELECT e.Name,SUM(e.Prob) FROM EmpProb e WHERE e.Salary > 15M GROUP BY e.Name

Jan Chomicki University at Buffalo CQA October 2017 30 / 34

slide-102
SLIDE 102

Computing Clean Answers

SQL query

SELECT Name FROM EmpProb e WHERE e.Salary > 15M

SQL rewritten query

SELECT e.Name,SUM(e.Prob) FROM EmpProb e WHERE e.Salary > 15M GROUP BY e.Name EmpProb Name Salary Prob Gates 20M 0.7 Gates 30M 0.3 Musk 10M 0.5 Musk 20M 0.5 Name → Salary Name Prob Gates 1 Musk 0.5 SELECT e.Name,SUM(e.Prob) FROM EmpProb e WHERE e.Salary > 15M GROUP BY e.Name

Jan Chomicki University at Buffalo CQA October 2017 30 / 34

slide-103
SLIDE 103

Good News

Technology

practical methods for CQA for subsets of SQL:

restricted conjunctive/aggregation queries, primary/foreign-key constraints quantifier-free queries, denial constraints/acyclic TGDs/JDs LP-based approaches for expressive query/constraint languages

(slow) emergence of generic techniques implemented in prototype systems tested on medium-size databases

Jan Chomicki University at Buffalo CQA October 2017 31 / 34

slide-104
SLIDE 104

Good News

Technology

practical methods for CQA for subsets of SQL:

restricted conjunctive/aggregation queries, primary/foreign-key constraints quantifier-free queries, denial constraints/acyclic TGDs/JDs LP-based approaches for expressive query/constraint languages

(slow) emergence of generic techniques implemented in prototype systems tested on medium-size databases

The CQA Community

  • ver 30 active researchers

[ABC99] has over 800 citations 10-15 doctoral dissertations in Europe and North America 2007 SIGMOD Doctoral Dissertation Award (Ariel Fuxman)

  • verview papers [BC03, Ber06, Cho07, CM05b]

Jan Chomicki University at Buffalo CQA October 2017 31 / 34

slide-105
SLIDE 105

Taking stock

Jan Chomicki University at Buffalo CQA October 2017 32 / 34

slide-106
SLIDE 106

Taking stock

Topics of recent interest

CQA under prioritized repairs CQA and knowledgebases CQA and temporal databases repairing: algorithms, heuristics repairing the database and the schema CQA and data exchange

Jan Chomicki University at Buffalo CQA October 2017 32 / 34

slide-107
SLIDE 107

Taking stock

Topics of recent interest

CQA under prioritized repairs CQA and knowledgebases CQA and temporal databases repairing: algorithms, heuristics repairing the database and the schema CQA and data exchange

Open issues

inconsistency and incompleteness CQA and schema matching/mapping

Jan Chomicki University at Buffalo CQA October 2017 32 / 34

slide-108
SLIDE 108

Taking stock

Topics of recent interest

CQA under prioritized repairs CQA and knowledgebases CQA and temporal databases repairing: algorithms, heuristics repairing the database and the schema CQA and data exchange

Open issues

inconsistency and incompleteness CQA and schema matching/mapping

Jan Chomicki University at Buffalo CQA October 2017 32 / 34

slide-109
SLIDE 109

Acknowledgments

Marcelo Arenas Alessandro Artale Leo Bertossi Loreto Bravo Andrea Cal` ı ` Alvaro Cort´ es Thomas Eiter Wenfei Fan Enrico Franconi Ariel Fuxman Gianluigi Greco Sergio Greco Claudio Gutierrez Roger He Phokion Kolaitis Domenico Lembo Maurizio Lenzerini Jerzy Marcinkowski Ren´ ee Miller Cristian Molinaro Vijay Raghavan Riccardo Rosati Gunter Saake Jeremy Spinrad S lawek Staworko David Toman Jef Wijsen

Jan Chomicki University at Buffalo CQA October 2017 33 / 34

slide-110
SLIDE 110

Jan Chomicki University at Buffalo CQA October 2017 34 / 34

slide-111
SLIDE 111
  • M. Arenas, L. Bertossi, and J. Chomicki.

Consistent Query Answers in Inconsistent Databases. In ACM Symposium on Principles of Database Systems (PODS), pages 68–79, 1999.

  • M. Arenas, L. Bertossi, and J. Chomicki.

Answer Sets for Consistent Query Answering in Inconsistent Databases. Theory and Practice of Logic Programming, 3(4–5):393–424, 2003.

  • P. Andritsos, A. Fuxman, and R. Miller.

Clean Answers over Dirty Databases. In IEEE International Conference on Data Engineering (ICDE), 2006.

  • L. Bertossi and J. Chomicki.

Query Answering in Inconsistent Databases. In J. Chomicki, R. van der Meyden, and G. Saake, editors, Logics for Emerging Applications of Databases, pages 43–83. Springer-Verlag, 2003.

  • L. Bertossi.

Consistent Query Answering in Databases. SIGMOD Record, 35(2), June 2006.

  • P. Bohannon, M. Flaster, W. Fan, and R. Rastogi.

A Cost-Based Model and Effective Heuristic for Repairing Constraints by Value Modification.

Jan Chomicki University at Buffalo CQA October 2017 34 / 34

slide-112
SLIDE 112

In ACM SIGMOD International Conference on Management of Data, pages 143–154, 2005.

  • J. Chomicki.

Consistent Query Answering: Five Easy Pieces. In International Conference on Database Theory (ICDT), pages 1–17. Springer, LNCS 4353, 2007. Keynote talk.

  • A. Cal`

ı, D. Lembo, and R. Rosati. On the Decidability and Complexity of Query Answering over Inconsistent and Incomplete Databases. In ACM Symposium on Principles of Database Systems (PODS), pages 260–271, 2003.

  • A. Cal`

ı, D. Lembo, and R. Rosati. Query Rewriting and Answering under Constraints in Data Integration Systems. In International Joint Conference on Artificial Intelligence (IJCAI), pages 16–21, 2003.

  • J. Chomicki and J. Marcinkowski.

Minimal-Change Integrity Maintenance Using Tuple Deletions. Information and Computation, 197(1-2):90–121, 2005.

  • J. Chomicki and J. Marcinkowski.

Jan Chomicki University at Buffalo CQA October 2017 34 / 34

slide-113
SLIDE 113

On the Computational Complexity of Minimal-Change Integrity Maintenance in Relational Databases. In L. Bertossi, A. Hunter, and T. Schaub, editors, Inconsistency Tolerance, pages 119–150. Springer-Verlag, 2005.

  • J. Chomicki, J. Marcinkowski, and S. Staworko.

Computing Consistent Query Answers Using Conflict Hypergraphs. In International Conference on Information and Knowledge Management (CIKM), pages 417–426. ACM Press, 2004.

  • T. Eiter, M. Fink, G. Greco, and D. Lembo.

Efficient Evaluation of Logic Programs for Querying Data Integration Systems. In International Conference on Logic Programming (ICLP), pages 163–177, 2003.

  • A. Fuxman and R. J. Miller.

ConQuer: Efficient Management of Inconsistent Databases. In ACM SIGMOD International Conference on Management of Data, pages 155–166, 2005.

  • A. Fuxman and R. J. Miller.

First-Order Query Rewriting for Inconsistent Databases. Journal of Computer and System Sciences, 73(4):610–635, 2007.

  • G. Greco, S. Greco, and E. Zumpano.

A Logical Framework for Querying and Repairing Inconsistent Databases. IEEE Transactions on Knowledge and Data Engineering, 15(6):1389–1408, 2003.

Jan Chomicki University at Buffalo CQA October 2017 34 / 34

slide-114
SLIDE 114
  • W. Lipski Jr.

On Semantic Issues Connected with Incomplete Information Databases. ACM Transactions on Database Systems, 4(3):262–296, 1979. Paraschos Koutris and Jef Wijsen. Consistent query answering for self-join-free conjunctive queries under primary key constraints. ACM Trans. Database Syst., 42(2):9:1–9:45, 2017.

  • A. Lopatenko and L. Bertossi.

Complexity of Consistent Query Answering in Databases under Cardinality-Based and Incremental Repair Semantics. In International Conference on Database Theory (ICDT), pages 179–193. Springer, LNCS 4353, 2007.

  • J. Wijsen.

Project-Join Repair: An Approach to Consistent Query Answering Under Functional Dependencies. In International Conference on Flexible Query Answering Systems (FQAS), 2006.

Jan Chomicki University at Buffalo CQA October 2017 34 / 34