skip to main content
research-article
Public Access

Bag Query Containment and Information Theory

Published:28 September 2021Publication History
Skip Abstract Section

Abstract

The query containment problem is a fundamental algorithmic problem in data management. While this problem is well understood under set semantics, it is by far less understood under bag semantics. In particular, it is a long-standing open question whether or not the conjunctive query containment problem under bag semantics is decidable. We unveil tight connections between information theory and the conjunctive query containment under bag semantics. These connections are established using information inequalities, which are considered to be the laws of information theory. Our first main result asserts that deciding the validity of a generalization of information inequalities is many-one equivalent to the restricted case of conjunctive query containment in which the containing query is acyclic; thus, either both these problems are decidable or both are undecidable. Our second main result identifies a new decidable case of the conjunctive query containment problem under bag semantics. Specifically, we give an exponential-time algorithm for conjunctive query containment under bag semantics, provided the containing query is chordal and admits a simple junction tree.

References

  1. Mahmoud Abo Khamis, Phokion G. Kolaitis, Hung Q. Ngo, and Dan Suciu. 2020. Bag query containment and information theory. In Proceedings of the 39th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (PODS’20). ACM, New York, NY, 95–112. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Foto N. Afrati, Matthew Damigos, and Manolis Gergatsoulis. 2010. Query containment under bag and bag-set semantics. Inf. Process. Lett. 110, 10 (2010), 360–369. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Marcelo Arenas and Leonid Libkin. 2005. An information-theoretic approach to normal forms for relational and XML data. J. ACM 52, 2 (2005), 246–283. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Albert Atserias, Martin Grohe, and Dániel Marx. 2013. Size bounds and query plans for relational joins. SIAM J. Comput. 42, 4 (2013), 1737–1767.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Terence Chan. 2011. Recent progresses in characterising information inequalities. Entropy 13, 2 (2011), 379–401.Google ScholarGoogle ScholarCross RefCross Ref
  6. Terence H. Chan. 2007. Group characterizable entropy functions. In Proceedings of the IEEE International Symposium on Information Theory. IEEE, 506–510.Google ScholarGoogle ScholarCross RefCross Ref
  7. Terence H. Chan and Raymond W. Yeung. 2002. On a relation between information inequalities and group theory. IEEE Trans. Inf. Theory 48, 7 (2002), 1992–1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Ashok K. Chandra and Philip M. Merlin. 1977. Optimal implementation of conjunctive queries in relational data bases. In Proceedings of the 9th Annual ACM Symposium on Theory of Computing. 77–90. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Surajit Chaudhuri and Moshe Y. Vardi. 1993. Optimization of real conjunctive queries. In Proceedings of the 12th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. 59–70. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Ronald Fagin. 1982. Horn clauses and database dependencies. J. ACM 29, 4 (1982), 952–985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Ronald Fagin. 1983. Degrees of acyclicity for hypergraphs and relational database schemes. J. ACM 30, 3 (1983), 514–550. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Dan Geiger and Judea Pearl. 1993. Logical and algorithmic properties of conditional independence and graphical models. Ann. Stat. 21, 4 (1993), 2001–2021. Google ScholarGoogle ScholarCross RefCross Ref
  13. Arley Gomez, Carolina Mejía Corredor, and J. Andres Montoya. 2017. Defining the almost-entropic regions by algebraic inequalities. IJICoT 4, 1 (2017), 1–18. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Georg Gottlob, Stephanie Tien Lee, Gregory Valiant, and Paul Valiant. 2012. Size and treewidth bounds for conjunctive queries. J. ACM 59, 3 (2012), 16:1–16:35. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Martin Grohe and Dániel Marx. 2014. Constraint solving via fractional edge covers. ACM Trans. Algorithms 11, 1 (2014), 4:1–4:20. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Yannis E. Ioannidis and Raghu Ramakrishnan. 1995. Containment of conjunctive queries: Beyond relations as sets. ACM Trans. Database Syst. 20, 3 (1995), 288–324. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. T. S. Jayram, Phokion G. Kolaitis, and Erik Vee. 2006. The containment problem for REAL conjunctive queries with inequalities. In Proceedings of the 25th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems. 80–89. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Mahmoud Abo Khamis, Hung Q. Ngo, and Dan Suciu. 2016. Computing join queries with functional dependencies. In Proceedings of the 35th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems. 327–342. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Mahmoud Abo Khamis, Hung Q. Ngo, and Dan Suciu. 2017. What do Shannon-type inequalities, submodular width, and disjunctive datalog have to do with one another? In Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems. 429–444. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Anthony C. Klug. 1988. On conjunctive queries containing inequalities. J. ACM 35, 1 (1988), 146–160. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. George Konstantinidis and Fabio Mogavero. 2019. Attacking diophantus: Solving a special case of bag containment. In Proceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Swastik Kopparty and Benjamin Rossman. 2011. The homomorphism domination exponent. Eur. J. Comb. 32, 7 (2011), 1097–1114. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Tony T. Lee. 1987. An information-theoretic analysis of relational databases - part I: Data dependencies and information metric. IEEE Trans. Software Eng. 13, 10 (1987), 1049–1061. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Tony T. Lee. 1987. An information-theoretic analysis of relational databases - part II: Information structures of database schemas. IEEE Trans. Software Eng. 13, 10 (1987), 1061–1072. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Frantisek Matús. 2007. Infinitely many information inequalities. In Proceedings of the IEEE International Symposium on Information Theory. 41–44.Google ScholarGoogle ScholarCross RefCross Ref
  26. Nicholas Pippenger. 1986. What are the laws of information theory. In Proceedings of the 1986 Special Problems on Communication and Computation Conference. 3–5.Google ScholarGoogle Scholar
  27. Yehoshua Sagiv and Mihalis Yannakakis. 1980. Equivalences among relational expressions with the union and difference operators. J. ACM 27, 4 (1980), 633–655. Google ScholarGoogle ScholarDigital LibraryDigital Library
  28. Ron van der Meyden. 1997. The complexity of querying indefinite data about linearly ordered domains. J. Comput. Syst. Sci. 54, 1 (1997), 113–135. Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. Martin J. Wainwright and Michael I. Jordan. 2008. Graphical models, exponential families, and variational inference. Found. Trends Mach. Learn. 1, 1–2 (2008), 1–305. DOI:https://doi.org/10.1561/2200000001 Google ScholarGoogle ScholarDigital LibraryDigital Library
  30. Raymond W. Yeung. 2008. Information Theory and Network Coding (1st ed.). Springer Publishing Company, Incorporated. Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. Raymond W. Yeung. 2012. A First Course in Information Theory. Springer Science & Business Media.Google ScholarGoogle Scholar
  32. Zhen Zhang and Raymond W. Yeung. 1997. A non-Shannon-type conditional inequality of information quantities. IEEE Trans. Inf. Theory 43, 6 (1997), 1982–1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. Zhen Zhang and Raymond W. Yeung. 1998. On characterization of entropy function via information inequalities. IEEE Trans. Inf. Theory 44, 4 (1998), 1440–1452. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Bag Query Containment and Information Theory

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM Transactions on Database Systems
          ACM Transactions on Database Systems  Volume 46, Issue 3
          September 2021
          172 pages
          ISSN:0362-5915
          EISSN:1557-4644
          DOI:10.1145/3481695
          Issue’s Table of Contents

          Copyright © 2021 Copyright held by the owner/author(s). Publication rights licensed to ACM.

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 28 September 2021
          • Accepted: 1 June 2021
          • Received: 1 November 2020
          Published in tods Volume 46, Issue 3

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Refereed

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format .

        View HTML Format