Abstract
We answer the question of which conjunctive queries are uniquely characterized by polynomially many positive and negative examples and how to construct such examples efficiently. As a consequence, we obtain a new efficient exact learning algorithm for a class of conjunctive queries. At the core of our contributions lie two new polynomial-time algorithms for constructing frontiers in the homomorphism lattice of finite structures. We also discuss implications for the unique characterizability and learnability of schema mappings and of description logic concepts.
- [1] . 2011. Characterizing schema mappings via data examples. ACM Trans. Datab. Syst. 36, 4 (
Dec. 2011).DOI: Google ScholarDigital Library
- [2] . 1988. Queries and concept learning. Mach. Learn. 2, 4 (
Apr. 1988), 319–342.DOI: Google ScholarDigital Library
- [3] . 1974. Dependency structures of data base relationships. In IFIP Congress.Google Scholar
- [4] . 2017. An Introduction to Description Logic. Cambridge University Press.Google Scholar
Cross Ref
- [5] . 2003. Basic Description Logics. Cambridge University Press, 43–95.Google Scholar
- [6] . 2014. Querying the guarded fragment. Logic. Meth. Comput. Sci. 10, 2 (2014).
DOI: Google ScholarCross Ref
- [7] . 2017. The complexity of reverse engineering problems for conjunctive queries. In Proceedings of the 20th International Conference on Database Theory. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 7:1–7:17.Google Scholar
- [8] . 2020. A reintroduction to our Knowledge Graph and knowledge panels. https://blog.google/products/search/about-knowledge-graph-and-knowledge-panels/.Google Scholar
- [9] . 2015. Learning path queries on graph databases. In Proceedings of the 18th International Conference on Extending Database Technology. OpenProceedings.org, 109–120.Google Scholar
- [10] . 2016. Learning join queries from user examples. ACM Trans. Datab. Syst. 40, 4 (2016), 24:1–24:38.Google Scholar
- [11] . 1977. Optimal implementation of conjunctive queries in relational data bases. In Proceedings of the ACM Symposium on Theory of Computing (STOC). 77–90.Google Scholar
Digital Library
- [12] . 1993. Cryptographic limitations on learning one-clause logic programs. In Proceedings of the 11th National Conference on Artificial Intelligence. AAAI Press/The MIT Press, 80–85.Google Scholar
- [13] . 1994. PAC-learning nondeterminate clauses. In Proceedings of the 12th National Conference on Artificial Intelligence. AAAI Press/The MIT Press, 676–681.Google Scholar
- [14] . 1995. PAC-learning non-recursive prolog clauses. Artif. Intell. 79, 1 (1995), 1–38.Google Scholar
Digital Library
- [15] . 2002. Constraint satisfaction, bounded treewidth, and finite-variable logics. In Principles and Practice of Constraint Programming - CP 2002, (Ed.). Springer Berlin, 310–326.Google Scholar
Cross Ref
- [16] . 1983. Degrees of acyclicity for hypergraphs and relational database schemes. J. ACM 30, 3 (
July 1983), 514–550.DOI: Google ScholarDigital Library
- [17] . 2008. Towards a theory of schema-mapping optimization. In Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems. 33–42.
DOI: Google ScholarDigital Library
- [18] . 2008. Generalised dualities and maximal finite antichains in the homomorphism order of relational structures. Eur. J. Comb. 29, 4 (2008), 881–899.Google Scholar
Digital Library
- [19] . 2021. Actively learning concepts and conjunctive queries under ELr-ontologies. In Proceedings of the International Joint Conference on Artificial Intelligence.Google Scholar
Cross Ref
- [20] . 2022. Frontiers and exact learning of ELI queries under DL-lite ontologies. In Proceedings of the 31st International Joint Conference on Artificial Intelligence. International Joint Conferences on Artificial Intelligence Organization, 2627–2633.
DOI: Google ScholarCross Ref
- [21] . 2010. Schema mapping discovery from data instances. J. ACM 57, 2 (2010), 6:1–6:37.Google Scholar
Digital Library
- [22] . 1989. Learning conjunctive concepts in structural domains. Mach. Learn. 4 (1989), 7–40.Google Scholar
Digital Library
- [23] . 1992. The core of a graph. Discr. Math. 109 (1992), 117–126.Google Scholar
Digital Library
- [24] . 2004. Graphs and Homomorphisms. Oxford University Press.Google Scholar
Cross Ref
- [25] . 2000. On the hardness of learning acyclic conjunctive queries. In Proceedings of the 11th International Conference on Algorithmic Learning Theory. Springer, 238–251.Google Scholar
Digital Library
- [26] . 2020. First-order queries on classes of structures with bounded expansion. Logic. Meth. Comput. Sci. 16, 1 (
Feb. 2020).Google Scholar - [27] . 2005. Schema mappings, data exchange, and metadata management. In Proceedings of the 24th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS’05). Association for Computing Machinery, New York, NY, 61–75.
DOI: Google ScholarDigital Library
- [28] . 1986. Test data for relational queries. In Proceedings of the Symposium on Principles of Database Systems. 217–223.Google Scholar
Digital Library
- [29] . 2002. Narcissists, stepmothers and spies. In Proceedings of the International Workshop on Description Logics. CEUR-WS.org.Google Scholar
- [30] . 2008. Grad and classes with bounded expansion III. Restricted graph homomorphism dualities. Eur. J. Combinat. 29, 4 (2008), 1012–.1024.
DOI: Google ScholarDigital Library
- [31] . 2008. Grad and classes with bounded expansion I. decompositions. Eur. J. Combinat. 29, 3 (2008), 760–776.
DOI: Google ScholarDigital Library
- [32] . 2012. Sparsity (Graphs, Structures, and Algorithms). Vol. 28. Springer.
DOI: Google ScholarCross Ref
- [33] . 2000. Duality theorems for finite structures (characterising gaps and good characterisations). J. Combinat. Theor., Series B 80, 1 (2000), 80–97.
DOI: Google ScholarDigital Library
- [34] . 2005. Short answers to exponentially long questions: Extremal aspects of homomorphism duality. SIAM J. Discret. Math. 19, 4 (
Aug. 2005), 914–920.DOI: Google ScholarDigital Library
- [35] . 2020. Learning description logic ontologies: Five approaches. where do they stand? KI - Künstliche Intelligenz (
04 2020).DOI: Google ScholarCross Ref
- [36] . 2012. Learning twig and path queries. In Proceedings of the 15th International Conference on Database Theory. ACM, 140–154.Google Scholar
Digital Library
- [37] . 2015. Characterizing XML twig queries with examples. In Proceedings of the International Conference on Database Theory. https://hal.inria.fr/hal-01205417.Google Scholar
- [38] . 2009. Laconic schema mappings: Computing the core with SQL queries. Proc. VLDB Endow. 2, 1 (
Aug. 2009), 1006–1017.DOI: Google ScholarDigital Library
- [39] . 2015. The product homomorphism problem and applications. In Proceedings of the 18th International Conference on Database Theory. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 161–176.Google Scholar
- [40] . 2021. Conjunctive queries: Unique characterizations and exact learnability. In Proceedings of the International Conference on Database Theory. Schloss Dagstuhl - Leibniz-Zentrum für Informatik.Google Scholar
- [41] . 2013. Learning schema mappings. ACM Trans. Datab. Syst. 38, 4 (2013), 28:1–28:31.
DOI: Google ScholarDigital Library
- [42] . 2018. Active learning of GAV schema mappings. In Proceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems. ACM, 355–368.
DOI: Google ScholarDigital Library
- [43] . 2017. Reverse engineering SPJ-queries from examples. In Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems. ACM, 151–166.Google Scholar
Digital Library
- [44] . 2010. Testing expressibility is hard. In Proceedings of the 16th International Conference on Principles and Practice of Constraint Programming. Springer, 9–23.Google Scholar
Digital Library
Index Terms
Conjunctive Queries: Unique Characterizations and Exact Learnability
Recommendations
Efficient approximations of conjunctive queries
PODS '12: Proceedings of the 31st ACM SIGMOD-SIGACT-SIGAI symposium on Principles of Database SystemsWhen finding exact answers to a query over a large database is infeasible, it is natural to approximate the query by a more efficient one that comes from a class with good bounds on the complexity of query evaluation. In this paper we study such ...
Equivalence and minimization of conjunctive queries under combined semantics
ICDT '12: Proceedings of the 15th International Conference on Database TheoryThe problems of query containment, equivalence, and minimization are fundamental problems in the context of query processing and optimization. In their classic work [2] published in 1977, Chandra and Merlin solved the three problems for the language of ...
Efficient Approximations of Conjunctive Queries
When finding exact answers to a query over a large database is infeasible, it is natural to approximate the query by a more efficient one that comes from a class with good bounds on the complexity of query evaluation. In this paper we study such ...





Comments