Skip to main content

A Survey of the Data Complexity of Consistent Query Answering under Key Constraints

  • Conference paper
Foundations of Information and Knowledge Systems (FoIKS 2014)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 8367))

Abstract

This paper adopts a very elementary representation of uncertainty. A relational database is called uncertain if it can violate primary key constraints. A repair of an uncertain database is obtained by selecting a maximal number of tuples without selecting two distinct tuples of the same relation that agree on their primary key. For any Boolean query q, CERTAINTY(q) is the problem that takes an uncertain database db on input, and asks whether q is true in every repair of db. The complexity of these problems has been particularly studied for q ranging over the class of Boolean conjunctive queries. A research challenge is to solve the following complexity classification task: given q, determine whether CERTAINTY(q) belongs to complexity classes FO, P, or coNP-complete.

The counting variant of CERTAINTY(q), denoted \(\sharp\) CERTAINTY(q), asks to determine the exact number of repairs that satisfy q. This problem is related to query answering in probabilistic databases.

This paper motivates the problems CERTAINTY(q) and \(\sharp\) CERTAINTY(q), surveys the progress made in the study of their complexity, and lists open problems. We also show a new result comparing complexity boundaries of both problems with one another.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Arenas, M., Bertossi, L.E., Chomicki, J.: Consistent query answers in inconsistent databases. In: PODS, pp. 68–79. ACM Press (1999)

    Google Scholar 

  2. Beeri, C., Fagin, R., Maier, D., Yannakakis, M.: On the desirability of acyclic database schemes. J. ACM 30(3), 479–513 (1983)

    Article  MATH  MathSciNet  Google Scholar 

  3. Bertossi, L.E.: Database Repairing and Consistent Query Answering. In: Synthesis Lectures on Data Management. Morgan & Claypool Publishers (2011)

    Google Scholar 

  4. Bulatov, A.A.: Complexity of conservative constraint satisfaction problems. ACM Trans. Comput. Log. 12(4), 24 (2011)

    Article  MathSciNet  Google Scholar 

  5. Bulatov, A.A.: The complexity of the counting constraint satisfaction problem. J. ACM 60(5), 34 (2013)

    Google Scholar 

  6. Dalvi, N.N., Ré, C., Suciu, D.: Probabilistic databases: diamonds in the dirt. Commun. ACM 52(7), 86–94 (2009)

    Article  Google Scholar 

  7. Dalvi, N.N., Re, C., Suciu, D.: Queries and materialized views on probabilistic databases. J. Comput. Syst. Sci. 77(3), 473–490 (2011)

    Article  MATH  MathSciNet  Google Scholar 

  8. Dalvi, N.N., Suciu, D.: The dichotomy of probabilistic inference for unions of conjunctive queries. J. ACM 59(6), 30 (2012)

    Article  MathSciNet  Google Scholar 

  9. Decan, A.: Certain Query Answering in First-Order Languages. PhD thesis, Université de Mons (2013)

    Google Scholar 

  10. Decan, A., Pijcke, F., Wijsen, J.: Certain conjunctive query answering in SQL. In: Hüllermeier, E., Link, S., Fober, T., Seeger, B. (eds.) SUM 2012. LNCS, vol. 7520, pp. 154–167. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  11. Dyer, M.E., Richerby, D.: An effective dichotomy for the counting constraint satisfaction problem. SIAM J. Comput. 42(3), 1245–1274 (2013)

    Article  MATH  Google Scholar 

  12. Fontaine, G.: Why is it hard to obtain a dichotomy for consistent query answering? In: LICS, pp. 550–559. IEEE Computer Society (2013)

    Google Scholar 

  13. Fuxman, A., Fazli, E., Miller, R.J.: ConQuer: Efficient management of inconsistent databases. In: Özcan, F. (ed.) SIGMOD Conference, pp. 155–166. ACM (2005)

    Google Scholar 

  14. Fuxman, A.D., Miller, R.J.: First-order query rewriting for inconsistent databases. In: Eiter, T., Libkin, L. (eds.) ICDT 2005. LNCS, vol. 3363, pp. 337–351. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  15. Fuxman, A., Miller, R.J.: First-order query rewriting for inconsistent databases. J. Comput. Syst. Sci. 73(4), 610–635 (2007)

    Article  MATH  MathSciNet  Google Scholar 

  16. Greco, S., Pijcke, F., Wijsen, J.: Certain query answering in partially consistent databases. PVLDB 7(5) (2014)

    Google Scholar 

  17. Kolaitis, P.G., Pema, E.: A dichotomy in the complexity of consistent query answering for queries with two atoms. Inf. Process. Lett. 112(3), 77–85 (2012)

    Article  MATH  MathSciNet  Google Scholar 

  18. Kolaitis, P.G., Pema, E., Tan, W.-C.: Efficient querying of inconsistent databases with binary integer programming. PVLDB 6(6), 397–408 (2013)

    Google Scholar 

  19. Koutris, P., Suciu, D.: A dichotomy on the complexity of consistent query answering for atoms with simple keys. CoRR, abs/1212.6636 (2012)

    Google Scholar 

  20. Koutris, P., Suciu, D.: A dichotomy on the complexity of consistent query answering for atoms with simple keys. In: Schweikardt [27]

    Google Scholar 

  21. Ladner, R.E.: On the structure of polynomial time reducibility. J. ACM 22(1), 155–171 (1975)

    Article  MATH  MathSciNet  Google Scholar 

  22. Libkin, L.: Elements of Finite Model Theory. Springer (2004)

    Google Scholar 

  23. Maslowski, D., Wijsen, J.: Uncertainty that counts. In: Christiansen, H., De Tré, G., Yazici, A., Zadrozny, S., Andreasen, T., Larsen, H.L. (eds.) FQAS 2011. LNCS, vol. 7022, pp. 25–36. Springer, Heidelberg (2011)

    Chapter  Google Scholar 

  24. Maslowski, D., Wijsen, J.: A dichotomy in the complexity of counting database repairs. J. Comput. Syst. Sci. 79(6), 958–983 (2013)

    Article  MATH  MathSciNet  Google Scholar 

  25. Maslowski, D., Wijsen, J.: Counting database repairs that satisfy conjunctive queries with self-joins. In: Schweikardt ed. [27]

    Google Scholar 

  26. Pema, E.: Consistent Query Answering of Conjunctive Queries under Primary Key Constraints. PhD thesis, University of California Santa Cruz (2013)

    Google Scholar 

  27. Schweikardt, N. (ed.): 17th International Conference on Database Theory, ICDT 2014, Athens, Greece, March 24-28. ACM (2014)

    Google Scholar 

  28. ten Cate, B., Fontaine, G., Kolaitis, P.G.: On the data complexity of consistent query answering. In: Deutsch, A. (ed.) ICDT, pp. 22–33. ACM (2012)

    Google Scholar 

  29. Wijsen, J.: Database repairing using updates. ACM Trans. Database Syst. 30(3), 722–768 (2005)

    Article  Google Scholar 

  30. Wijsen, J.: On condensing database repairs obtained by tuple deletions. In: DEXA Workshops, pp. 849–853. IEEE Computer Society (2005)

    Google Scholar 

  31. Wijsen, J.: Project-join-repair: An approach to consistent query answering under functional dependencies. In: Larsen, H.L., Pasi, G., Ortiz-Arroyo, D., Andreasen, T., Christiansen, H. (eds.) FQAS 2006. LNCS (LNAI), vol. 4027, pp. 1–12. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  32. Wijsen, J.: On the consistent rewriting of conjunctive queries under primary key constraints. Inf. Syst. 34(7), 578–601 (2009)

    Article  Google Scholar 

  33. Wijsen, J.: A remark on the complexity of consistent conjunctive query answering under primary key violations. Inf. Process. Lett. 110(21), 950–955 (2010)

    Article  MathSciNet  Google Scholar 

  34. Wijsen, J.: Certain conjunctive query answering in first-order logic. ACM Trans. Database Syst. 37(2), 9 (2012)

    Article  Google Scholar 

  35. Wijsen, J.: Charting the tractability frontier of certain conjunctive query answering. In: Hull, R., Fan, W. (eds.) PODS, pp. 189–200. ACM (2013)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Wijsen, J. (2014). A Survey of the Data Complexity of Consistent Query Answering under Key Constraints. In: Beierle, C., Meghini, C. (eds) Foundations of Information and Knowledge Systems. FoIKS 2014. Lecture Notes in Computer Science, vol 8367. Springer, Cham. https://doi.org/10.1007/978-3-319-04939-7_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-04939-7_2

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-04938-0

  • Online ISBN: 978-3-319-04939-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics