{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,4]],"date-time":"2026-10-04T07:09:57Z","timestamp":1791097797418,"version":"4.1.0"},"reference-count":53,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2007,4,1]],"date-time":"2007-04-01T00:00:00Z","timestamp":1175385600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Comput. Logic"],"published-print":{"date-parts":[[2007,4]]},"abstract":"<jats:p>\n            We study relations on trees defined by first-order constraints over a vocabulary that includes the\n            <jats:italic>tree extension relation T<\/jats:italic>\n            \u227a\n            <jats:italic>T<\/jats:italic>\n            \u2032 (holding if and only if every branch of\n            <jats:italic>T<\/jats:italic>\n            extends to a branch of\n            <jats:italic>T<\/jats:italic>\n            \u2032), unary node-tests, and a binary relation checking whether the domains of two trees are equal. We consider both ranked and unranked trees. These are trees with and without a restriction on the number of children of nodes. We adopt the model-theoretic approach to tree relations and study relations definable over the structure consisting of the set of all trees and the aforementioned predicates. We relate definability of sets and relations of trees to computability by tree automata. We show that some natural restrictions correspond to familiar logics in the more classical setting where every tree is a structure over a fixed vocabulary, and to logics studied in the context of XML pattern languages. We then look at relational calculi over collections of trees, and obtain quantifier-restriction results that give us bounds on the expressive power and complexity. As unrestricted relational calculi can express problems that are complete for each level of the polynomial hierarchy, we look at their restrictions, corresponding to the restricted logics over the family of all unranked trees, and find several calculi with low (NC\n            <jats:sup>1<\/jats:sup>\n            ) data complexity which still express properties important for database and document applications. We also give normal forms for safe queries in the calculus.\n          <\/jats:p>","DOI":"10.1145\/1227839.1227843","type":"journal-article","created":{"date-parts":[[2007,6,6]],"date-time":"2007-06-06T14:37:11Z","timestamp":1181140631000},"page":"11","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":9,"title":["Logical definability and query languages over ranked and unranked trees"],"prefix":"10.1145","volume":"8","author":[{"given":"Michael","family":"Benedikt","sequence":"first","affiliation":[{"name":"Bell Laboratories, Naperville, IL"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Leonid","family":"Libkin","sequence":"additional","affiliation":[{"name":"University of Edinburgh and University of Toronto"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Frank","family":"Neven","sequence":"additional","affiliation":[{"name":"Hasselt University and Transnational University of Limburg, Diepenbeek, Belgium"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2007,4]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley.   Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley."},{"key":"e_1_2_1_2_1","series-title":"Lecture Notes in Computer Science","volume-title":"PPCP: Proceedings of the 2nd International Workshop on Principles and Practice of Constraint Programming","author":"Aiken A.","unstructured":"Aiken , A. 1994. Set constraints: Results, applications, and future directions . In PPCP: Proceedings of the 2nd International Workshop on Principles and Practice of Constraint Programming . Lecture Notes in Computer Science , vol. 874 . Springer Verlag . 326--335. Aiken, A. 1994. Set constraints: Results, applications, and future directions. In PPCP: Proceedings of the 2nd International Workshop on Principles and Practice of Constraint Programming. Lecture Notes in Computer Science, vol. 874. Springer Verlag. 326--335."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01744439"},{"key":"e_1_2_1_4_1","unstructured":"Anthony M. and Biggs N. 1992. Computational Learning Theory. Cambridge University Press.   Anthony M. and Biggs N. 1992. Computational Learning Theory. Cambridge University Press."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/347476.347477"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/876638.876642"},{"key":"e_1_2_1_7_1","volume-title":"LICS: Proceedings of the 15th Annual IEEE Symposium on Logic in Computer Science. 51","author":"Blumensath A.","unstructured":"Blumensath , A. and Gr\u00e4el , E . 2000. Automatic structures . In LICS: Proceedings of the 15th Annual IEEE Symposium on Logic in Computer Science. 51 . Blumensath, A. and Gr\u00e4el, E. 2000. Automatic structures. In LICS: Proceedings of the 15th Annual IEEE Symposium on Logic in Computer Science. 51."},{"key":"e_1_2_1_8_1","doi-asserted-by":"crossref","unstructured":"B\u00f6rger E. Gr\u00e4del E. and Gurevich Y. 1997. The Classical Decision Problem. Springer Verlag.  B\u00f6rger E. Gr\u00e4del E. and Gurevich Y. 1997. The Classical Decision Problem. Springer Verlag.","DOI":"10.1007\/978-3-642-59207-2"},{"key":"e_1_2_1_9_1","unstructured":"Bray T. Paoli J. Sperberg-McQueen C. M. and Maler E. 2000. Extensible Markup Language (XML) 1.0 2nd ed. W3C recommendation. http:\/\/www.w3.org\/XML.  Bray T. Paoli J. Sperberg-McQueen C. M. and Maler E. 2000. Extensible Markup Language (XML) 1.0 2nd ed. W3C recommendation. http:\/\/www.w3.org\/XML."},{"key":"e_1_2_1_10_1","volume-title":"Tech. Rep. HKUST-TCSC-2001-0","author":"Br\u00fcggemann-Klein A.","year":"2001","unstructured":"Br\u00fcggemann-Klein , A. , Murata , M. , and Wood , D . 2001 . Regular tree and regular hedge languages over unranked alphabets: Version 1. Tech. Rep. HKUST-TCSC-2001-0 , The Hongkong University of Science and Technology . Br\u00fcggemann-Klein, A., Murata, M., and Wood, D. 2001. Regular tree and regular hedge languages over unranked alphabets: Version 1. Tech. Rep. HKUST-TCSC-2001-0, The Hongkong University of Science and Technology."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.36045\/bbms\/1103408547"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129504004141"},{"key":"e_1_2_1_13_1","unstructured":"Chamberlin D. Clark J. Florescu D. Robie J. Simeon J. and Stefanascu M. 2002. XQuery 1.0: An XML query language. http:\/\/www.w3.org\/TR\/xquery\/.  Chamberlin D. Clark J. Florescu D. Robie J. Simeon J. and Stefanascu M. 2002. XQuery 1.0: An XML query language. http:\/\/www.w3.org\/TR\/xquery\/."},{"key":"e_1_2_1_14_1","unstructured":"Clark J. 1999. XSL transformations version 1.0. http:\/\/www.w3.org\/TR\/WD-xslt.  Clark J. 1999. XSL transformations version 1.0. http:\/\/www.w3.org\/TR\/WD-xslt."},{"key":"e_1_2_1_15_1","unstructured":"Clark J. and DeRose S. 1999. XML path language (XPath). http:\/\/www.w3.org\/TR\/xpath.  Clark J. and DeRose S. 1999. XML path language (XPath). http:\/\/www.w3.org\/TR\/xpath."},{"key":"e_1_2_1_16_1","unstructured":"Comon H. Dauchet M. Gilleron R. Jacquemard F. Lugiez D. Tison S. and Tommasi M. 1997. Tree automata techniques and applications. http:\/\/www.grappa.univ-lille3.fr\/tata.  Comon H. Dauchet M. Gilleron R. Jacquemard F. Lugiez D. Tison S. and Tommasi M. 1997. Tree automata techniques and applications. http:\/\/www.grappa.univ-lille3.fr\/tata."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/335168.335218"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(70)80041-1"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.3115\/981344.981377"},{"key":"e_1_2_1_20_1","unstructured":"Ebbinghaus H.-D. and Flum J. 1999. Finite Model Theory 2nd ed. Springer Verlag.  Ebbinghaus H.-D. and Flum J. 1999. Finite Model Theory 2nd ed. Springer Verlag."},{"key":"e_1_2_1_21_1","volume-title":"CAV: Proceedings of the 10th International Conference on Computer Aided Verification, A. J. Hu and M. Y. Vardi, eds. Lecture Notes in Computer Science","volume":"1427","author":"Elgaard J.","unstructured":"Elgaard , J. , Klarlund , N. , and M\u00f8ller , A . 1998. Mona 1.x: New techniques for ws1s and ws2s . In CAV: Proceedings of the 10th International Conference on Computer Aided Verification, A. J. Hu and M. Y. Vardi, eds. Lecture Notes in Computer Science , vol. 1427 . Springer Verlag. 516--520. Elgaard, J., Klarlund, N., and M\u00f8ller, A. 1998. Mona 1.x: New techniques for ws1s and ws2s. In CAV: Proceedings of the 10th International Conference on Computer Aided Verification, A. J. Hu and M. Y. Vardi, eds. Lecture Notes in Computer Science, vol. 1427. Springer Verlag. 516--520."},{"key":"e_1_2_1_22_1","series-title":"Lecture Notes in Computer Science","volume-title":"STACS: Proceedings of the 15th Annual Symposium on Theoretical Aspects of Computer Science, M. Morvan et al. eds","author":"\u00c9sik Z.","unstructured":"\u00c9sik , Z. 1998. Axiomatizing the equational theory of regular tree languages (extended anstract) . In STACS: Proceedings of the 15th Annual Symposium on Theoretical Aspects of Computer Science, M. Morvan et al. eds . Lecture Notes in Computer Science , vol. 1373 . Springer Verlag . 455--465. \u00c9sik, Z. 1998. Axiomatizing the equational theory of regular tree languages (extended anstract). In STACS: Proceedings of the 15th Annual Symposium on Theoretical Aspects of Computer Science, M. Morvan et al. eds. Lecture Notes in Computer Science, vol. 1373. Springer Verlag. 455--465."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.2307\/2586806"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1059513.1059520"},{"key":"e_1_2_1_25_1","volume-title":"Model Theory","author":"Hodges W.","unstructured":"Hodges , W. 1993. Model Theory . Cambridge University Press , New York . Hodges, W. 1993. Model Theory. Cambridge University Press, New York."},{"key":"e_1_2_1_26_1","first-page":"39","article-title":"D\u00e9cadabilit\u00e9 par automate fini","volume":"7","author":"Hodgson B.","year":"1983","unstructured":"Hodgson , B. 1983 . D\u00e9cadabilit\u00e9 par automate fini . Ann. Sci. Math. Qu\u00e9bec 7 , 39 -- 57 . Hodgson, B. 1983. D\u00e9cadabilit\u00e9 par automate fini. Ann. Sci. Math. Qu\u00e9bec 7, 39--57.","journal-title":"Ann. Sci. Math. Qu\u00e9bec"},{"key":"e_1_2_1_27_1","doi-asserted-by":"crossref","unstructured":"Immerman N. 1998. Descriptive Complexity. Springer Verlag.  Immerman N. 1998. Descriptive Complexity. Springer Verlag.","DOI":"10.1007\/978-1-4612-0539-5"},{"key":"e_1_2_1_28_1","volume-title":"Lecture Notes in Computer Science","volume":"960","author":"Khoussainov B.","unstructured":"Khoussainov , B. and Nerode , A . 1995. Automatic presentations of structures. In LCC: Logical and Computational Complexity, D. Leivant, ed . Lecture Notes in Computer Science , vol. 960 . Springer Verlag. 367--392. Khoussainov, B. and Nerode, A. 1995. Automatic presentations of structures. In LCC: Logical and Computational Complexity, D. Leivant, ed. Lecture Notes in Computer Science, vol. 960. Springer Verlag. 367--392."},{"key":"e_1_2_1_29_1","doi-asserted-by":"crossref","unstructured":"Kolb H.-P. and M\u00f6nnich U. 1999. The Mathematics of Syntactic Structure: Trees and Their Logics. Walter De Gruyter Hawthorne NY.  Kolb H.-P. and M\u00f6nnich U. 1999. The Mathematics of Syntactic Structure: Trees and Their Logics. Walter De Gruyter Hawthorne NY.","DOI":"10.1515\/9783110806786"},{"key":"e_1_2_1_30_1","volume-title":"LICS: Proceedings of the 11th Annual IEEE Symposium on Logic in Computer Science. 322","author":"Kupferman O.","unstructured":"Kupferman , O. , Safra , S. , and Vardi , M. Y . 1996. Relating word and tree automata . In LICS: Proceedings of the 11th Annual IEEE Symposium on Logic in Computer Science. 322 . Kupferman, O., Safra, S., and Vardi, M. Y. 1996. Relating word and tree automata. In LICS: Proceedings of the 11th Annual IEEE Symposium on Logic in Computer Science. 322."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1112\/jlms\/s2-45.2.377"},{"key":"e_1_2_1_32_1","volume-title":"RTA: Proceedings of the 12th International Conference on Rewriting Techniques and Applications","author":"Lohrey M.","unstructured":"Lohrey , M. 2001. On the parallel complexity of tree automata . In RTA: Proceedings of the 12th International Conference on Rewriting Techniques and Applications , A. Middeldorp, ed. Lecture Notes in Computer Science, vol. 2051 . Springer Verlag . 201--215. Lohrey, M. 2001. On the parallel complexity of tree automata. In RTA: Proceedings of the 12th International Conference on Rewriting Techniques and Applications, A. Middeldorp, ed. Lecture Notes in Computer Science, vol. 2051. Springer Verlag. 201--215."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/1055558.1055562"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.2000.2878"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1009866317252"},{"key":"e_1_2_1_36_1","first-page":"193","article-title":"The first-order theory of ordering constraints over feature trees","volume":"4","author":"M\u00fcller M.","year":"2001","unstructured":"M\u00fcller , M. , Niehren , J. , and Treinen , R. 2001 . The first-order theory of ordering constraints over feature trees . Discrete Math. Theor. Comput. Sci. 4 , 2, 193 -- 234 . M\u00fcller, M., Niehren, J., and Treinen, R. 2001. The first-order theory of ordering constraints over feature trees. Discrete Math. Theor. Comput. Sci. 4, 2, 193--234.","journal-title":"Discrete Math. Theor. Comput. Sci."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/335168.335217"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(01)00301-2"},{"key":"e_1_2_1_39_1","volume-title":"STACS: Proceedings of the 15th Annual Symposium on Theoretical Aspects of Computer Science, M. Morvan et al. eds. Lecture Notes in Computer Science","volume":"1373","author":"Niwinski D.","unstructured":"Niwinski , D. and Walukiewicz , I . 1998. Relating hierarchies of word and tree automata . In STACS: Proceedings of the 15th Annual Symposium on Theoretical Aspects of Computer Science, M. Morvan et al. eds. Lecture Notes in Computer Science , vol. 1373 . Springer Verlag. 320--331. Niwinski, D. and Walukiewicz, I. 1998. Relating hierarchies of word and tree automata. In STACS: Proceedings of the 15th Annual Symposium on Theoretical Aspects of Computer Science, M. Morvan et al. eds. Lecture Notes in Computer Science, vol. 1373. Springer Verlag. 320--331."},{"key":"e_1_2_1_40_1","volume-title":"FCT: Proceedings of the 9th International Symposium on Fundamentals of Computation Theory, Z. \u00c9sik, ed. Lecture Notes in Computer Science","volume":"710","author":"Potthoff A.","unstructured":"Potthoff , A. and Thomas , W . 1993. Regular tree languages without unary symbols are star-free . In FCT: Proceedings of the 9th International Symposium on Fundamentals of Computation Theory, Z. \u00c9sik, ed. Lecture Notes in Computer Science , vol. 710 . Springer Verlag. 396--405. Potthoff, A. and Thomas, W. 1993. Regular tree languages without unary symbols are star-free. In FCT: Proceedings of the 9th International Symposium on Fundamentals of Computation Theory, Z. \u00c9sik, ed. Lecture Notes in Computer Science, vol. 710. Springer Verlag. 396--405."},{"key":"e_1_2_1_41_1","first-page":"1","article-title":"Decidability of second-order theories and automata on infinite trees","volume":"141","author":"Rabin M.","year":"1969","unstructured":"Rabin , M. 1969 . Decidability of second-order theories and automata on infinite trees . Trans. Amer. Math. Soci. 141 , 1 -- 35 . Rabin, M. 1969. Decidability of second-order theories and automata on infinite trees. Trans. Amer. Math. Soci. 141, 1--35.","journal-title":"Trans. Amer. Math. Soci."},{"key":"e_1_2_1_42_1","volume-title":"Euro-Par: Proceedings of the 1st International Euro-Par Conference on Parallel Processing","author":"Smolka G.","unstructured":"Smolka , G. 1995. The OZ programming model (extended abstract) . In Euro-Par: Proceedings of the 1st International Euro-Par Conference on Parallel Processing , S. Haridi and P. Magnusson, eds. Lecture Notes in Computer Science, vol. 966 . Springer Verlag . 5--8. Smolka, G. 1995. The OZ programming model (extended abstract). In Euro-Par: Proceedings of the 1st International Euro-Par Conference on Parallel Processing, S. Haridi and P. Magnusson, eds. Lecture Notes in Computer Science, vol. 966. Springer Verlag. 5--8."},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(94)90044-2"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1999.2792"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/503272.503292"},{"key":"e_1_2_1_46_1","volume-title":"DBPL: Revised Papers from the 8th International Workshop on Database Programming Languages","author":"Suciu D.","unstructured":"Suciu , D. 2002. Typechecking for semistructured data . In DBPL: Revised Papers from the 8th International Workshop on Database Programming Languages , G. Ghelli and G. Grahne, eds. Lecture Notes in Computer Science, vol. 2397 . Springer Verlag . 1--20. Suciu, D. 2002. Typechecking for semistructured data. In DBPL: Revised Papers from the 8th International Workshop on Database Programming Languages, G. Ghelli and G. Grahne, eds. Lecture Notes in Computer Science, vol. 2397. Springer Verlag. 1--20."},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01691346"},{"key":"e_1_2_1_48_1","volume-title":"Proceedings of the 9th International Colloquium on Trees in Algebra and Programming, B. Courcelle, ed","author":"Thomas W.","year":"1984","unstructured":"Thomas , W. 1984 . Logical aspects in the study of tree languages . In Proceedings of the 9th International Colloquium on Trees in Algebra and Programming, B. Courcelle, ed . Cambridge University Press, New York. 31--50. Thomas, W. 1984. Logical aspects in the study of tree languages. In Proceedings of the 9th International Colloquium on Trees in Algebra and Programming, B. Courcelle, ed. Cambridge University Press, New York. 31--50."},{"key":"e_1_2_1_49_1","volume-title":"Symposium on Logic in Computer Science. 245--256","author":"Thomas W.","year":"1987","unstructured":"Thomas , W. 1987 . On chain logic, path logic, and first-order logic over infinite trees . In Symposium on Logic in Computer Science. 245--256 . Thomas, W. 1987. On chain logic, path logic, and first-order logic over infinite trees. In Symposium on Logic in Computer Science. 245--256."},{"key":"e_1_2_1_50_1","volume-title":"Handbook of Formal Languages","author":"Thomas W.","unstructured":"Thomas , W. 1997. Languages , automata, and logic . In Handbook of Formal Languages , vol. 3 . G. Rozenberg and A. Salomaa, eds. Springer Verlag . 389--456. Thomas, W. 1997. Languages, automata, and logic. In Handbook of Formal Languages, vol. 3. G. Rozenberg and A. Salomaa, eds. Springer Verlag. 389--456."},{"key":"e_1_2_1_51_1","volume-title":"Introduction to Circuit Complexity","author":"Vollmer H.","unstructured":"Vollmer , H. 1999. Introduction to Circuit Complexity . Springer Verlag . Vollmer, H. 1999. Introduction to Circuit Complexity. Springer Verlag."},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/275487.275515"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(95)00131-X"}],"container-title":["ACM Transactions on Computational Logic"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1227839.1227843","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1227839.1227843","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T21:41:21Z","timestamp":1750282881000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1227839.1227843"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2007,4]]},"references-count":53,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2007,4]]}},"alternative-id":["10.1145\/1227839.1227843"],"URL":"https:\/\/doi.org\/10.1145\/1227839.1227843","relation":{},"ISSN":["1529-3785","1557-945X"],"issn-type":[{"value":"1529-3785","type":"print"},{"value":"1557-945X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2007,4]]},"assertion":[{"value":"2007-04-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}