Nothing Special   »   [go: up one dir, main page]

skip to main content
column

Consistent Query Answering for Primary Keys

Published: 02 June 2016 Publication History

Abstract

We study the complexity of consistent query answering with respect to primary key violations, for self-join-free conjunctive queries. A repair of a possibly inconsistent database is obtained by selecting a maximal number of tuples without selecting two distinct tuples with the same primary key value. For any Boolean query q, CERTAINTY(q) is the problem that takes a database as input, and asks whether q is true in every repair of the database. The complexity of this problem has been extensively studied for q ranging over the class of self-join-free Boolean conjunctive queries. A research challenge is to determine, given q, whether CERTAINTY(q) belongs to complexity classes FO, P, or coNP-complete. We show that for any self-join-free Boolean conjunctive query q, it can be decided whether or not CERTAINTY(q) is in FO. Further, CERTAINTY(q) is either in P or coNP-complete, and the complexity dichotomy is effective. This settles a research question of practical relevance that has been open for ten years.

References

[1]
M. Arenas, L. E. Bertossi, and J. Chomicki. Consistent query answers in inconsistent databases. In PODS, pages 68--79. ACM Press, 1999.
[2]
C. Beeri, R. Fagin, D. Maier, and M. Yannakakis. On the desirability of acyclic database schemes. J. ACM, 30(3):479--513, 1983.
[3]
L. E. Bertossi. Database Repairing and Consistent Query Answering. Synthesis Lectures on Data Management. Morgan & Claypool Publishers, 2011.
[4]
A. A. Bulatov. Complexity of conservative constraint satisfaction problems. ACM Trans. Comput. Log., 12(4):24, 2011.
[5]
J. Chomicki, J. Marcinkowski, and S. Staworko. Hippo: A system for computing consistent answers to a class of SQL queries. In E. Bertino et al., editors, EDBT, volume 2992 of Lecture Notes in Computer Science, pages 841--844. Springer, 2004.
[6]
G. Fontaine. Why is it hard to obtain a dichotomy for consistent query answering? In LICS, pages 550--559. IEEE Computer Society, 2013.
[7]
A. Fuxman, E. Fazli, and R. J. Miller. ConQuer: Efficient management of inconsistent databases. In F. Özcan, editor, SIGMOD Conference, pages 155--166. ACM, 2005.
[8]
A. Fuxman and R. J. Miller. First-order query rewriting for inconsistent databases. In T. Eiter and L. Libkin, editors, ICDT, volume 3363 of Lecture Notes in Computer Science, pages 337--351. Springer, 2005.
[9]
G. Greco, S. Greco, and E. Zumpano. A logical framework for querying and repairing inconsistent databases. IEEE Trans. Knowl. Data Eng., 15(6):1389--1408, 2003.
[10]
P. G. Kolaitis and E. Pema. A dichotomy in the complexity of consistent query answering for queries with two atoms. Inf. Process. Lett., 112(3):77--85, 2012.
[11]
P. G. Kolaitis, E. Pema, and W. Tan. Efficient querying of inconsistent databases with binary integer programming. PVLDB, 6(6):397--408, 2013.
[12]
P. Koutris and D. Suciu. A dichotomy on the complexity of consistent query answering for atoms with simple keys. In Schweikardt et al. {19}, pages 165--176.
[13]
P. Koutris and J. Wijsen. The data complexity of consistent query answering for self-join-free conjunctive queries under primary key constraints. In T. Milo and D. Calvanese, editors, PODS, pages 17--29. ACM, 2015.
[14]
P. Koutris and J. Wijsen. A trichotomy in the data complexity of certain query answering for conjunctive queries. CoRR, abs/1501.07864, 2015.
[15]
L. Libkin. Elements of Finite Model Theory. Springer, 2004.
[16]
D. Maslowski and J. Wijsen. A dichotomy in the complexity of counting database repairs. J. Comput. Syst. Sci., 79(6):958--983, 2013.
[17]
D. Maslowski and J. Wijsen. Counting database repairs that satisfy conjunctive queries with self-joins. In Schweikardt et al. {19}, pages 155--164.
[18]
G. J. Minty. On maximal independent sets of vertices in claw-free graphs. J. Comb. Theory, Ser. B, 28(3):284--304, 1980.
[19]
N. Schweikardt, V. Christophides, and V. Leroy, editors. Proc. 17th International Conference on Database Theory (ICDT), Athens, Greece, March 24-28, 2014. OpenProceedings.org, 2014.
[20]
J. Wijsen. On the first-order expressibility of computing certain answers to conjunctive queries over uncertain databases. In J. Paredaens and D. V. Gucht, editors, PODS, pages 179--190. ACM, 2010.
[21]
J. Wijsen. A remark on the complexity of consistent conjunctive query answering under primary key violations. Inf. Process. Lett., 110(21):950--955, 2010.
[22]
J. Wijsen. Certain conjunctive query answering in first-order logic. ACM Trans. Database Syst., 37(2):9, 2012.
[23]
J. Wijsen. A survey of the data complexity of consistent query answering under key constraints. In C. Beierle and C. Meghini, editors, FoIKS, volume 8367 of Lecture Notes in Computer Science, pages 62--78. Springer, 2014.

Cited By

View all

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM SIGMOD Record
ACM SIGMOD Record  Volume 45, Issue 1
March 2016
73 pages
ISSN:0163-5808
DOI:10.1145/2949741
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 02 June 2016
Published in SIGMOD Volume 45, Issue 1

Check for updates

Qualifiers

  • Column

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)7
  • Downloads (Last 6 weeks)1
Reflects downloads up to 24 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2022)Consistent Answers of Aggregation Queries via SAT2022 IEEE 38th International Conference on Data Engineering (ICDE)10.1109/ICDE53745.2022.00074(924-937)Online publication date: May-2022
  • (2019)CAvSATProceedings of the 2019 International Conference on Management of Data10.1145/3299869.3300095(1823-1825)Online publication date: 25-Jun-2019
  • (2019)Approximation algorithms for querying incomplete databasesInformation Systems10.1016/j.is.2019.03.010Online publication date: Apr-2019
  • (2019)Possibilistic keysFuzzy Sets and Systems10.1016/j.fss.2019.01.008Online publication date: Jan-2019
  • (2019)A SAT-Based System for Consistent Query AnsweringTheory and Applications of Satisfiability Testing – SAT 201910.1007/978-3-030-24258-9_8(117-135)Online publication date: 29-Jun-2019
  • (2017)Consistent Query Answering for Self-Join-Free Conjunctive Queries Under Primary Key ConstraintsACM Transactions on Database Systems10.1145/306833442:2(1-45)Online publication date: 1-Jun-2017
  • (2017)First-order under-approximations of consistent query answersInternational Journal of Approximate Reasoning10.1016/j.ijar.2016.10.00583:C(337-355)Online publication date: 1-Apr-2017
  • (2016)Qualitative Cleaning of Uncertain DataProceedings of the 25th ACM International on Conference on Information and Knowledge Management10.1145/2983323.2983679(2269-2274)Online publication date: 24-Oct-2016

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media