{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,5]],"date-time":"2026-10-05T17:25:06Z","timestamp":1791221106960,"version":"4.1.0"},"reference-count":35,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2009,12,1]],"date-time":"2009-12-01T00:00:00Z","timestamp":1259625600000},"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. Database Syst."],"published-print":{"date-parts":[[2009,12]]},"abstract":"<jats:p>\n            Predicate logic has long been seen as a good foundation for querying relational data. This is embodied in the correspondence between relational calculus and first-order logic, and can also be seen in mappings from fragments of the standard relational query language SQL to extensions of first-order logic (e.g. with counting). A key question is what is the analog to this correspondence for querying tree-structured data, as seen, for example, in XML documents. We formalize this as the question of the appropriate logical query language for defining transformations on tree-structured data. The predominant practitioner paradigm for defining such transformations is\n            <jats:italic>top-down tree building<\/jats:italic>\n            . This is embodied by the XQuery query language, which builds the output tree in parallel starting at the root, based on variable bindings and nodeset queries in the XPath language. The goal of this article is to compare the expressiveness of top-down tree-building languages based on a benchmark of predicate logic. We start by giving a formalized XQuery\n            <jats:italic>XQ<\/jats:italic>\n            that can serve as a representative of the top-down approach. We show that all queries in\n            <jats:italic>XQ<\/jats:italic>\n            with only atomic equality are equivalent to first-order interpretations, an analog to first-order logic (FO) in the setting of transformations of tree-structured data. We then consider fragments of atomic\n            <jats:italic>XQ<\/jats:italic>\n            . We identify a fragment that maps efficiently into first-order, a fragment that maps into existential first-order logic, and a fragment that maps into the navigationally two-variable fragment of first-order logic\u2014an analog of two-variable logic in the setting where data values are unbounded. When\n            <jats:italic>XQ<\/jats:italic>\n            is considered with deep equality, we find that queries can be translated into FO with counting (\n            <jats:italic>FO<\/jats:italic>\n            (Cnt)). Translations from\n            <jats:italic>XQ<\/jats:italic>\n            to logical languages on relations have a number of consequences. We use them to derive complexity bounds for\n            <jats:italic>XQ<\/jats:italic>\n            fragments, and to bound the Boolean expressiveness of\n            <jats:italic>XQ<\/jats:italic>\n            fragments.\n          <\/jats:p>","DOI":"10.1145\/1620585.1620592","type":"journal-article","created":{"date-parts":[[2009,12,8]],"date-time":"2009-12-08T20:53:14Z","timestamp":1260305594000},"page":"1-48","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":22,"title":["From XQuery to relational logics"],"prefix":"10.1145","volume":"34","author":[{"given":"Michael","family":"Benedikt","sequence":"first","affiliation":[{"name":"Oxford University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Christoph","family":"Koch","sequence":"additional","affiliation":[{"name":"Cornell University"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2009,12,14]]},"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","doi-asserted-by":"publisher","DOI":"10.1145\/772062.772068"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(90)90022-D"},{"key":"e_1_2_1_4_1","unstructured":"Benedikt M. 2008. Back From Relational Logics to XQuery. To appear.  Benedikt M. 2008. Back From Relational Logics to XQuery. To appear."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/11787006_47"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/1456650.1456653"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the International Workshop on Web and Databases (WebDB). 53--62","author":"Chamberlin D."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/872757.872832"},{"key":"e_1_2_1_9_1","unstructured":"Ebbinghaus H.-D. and Flum J. 1999. Finite Model Theory. Springer. 2nd edition.  Ebbinghaus H.-D. and Flum J. 1999. Finite Model Theory. Springer. 2nd edition."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.2001.2953"},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of the International Conference on Very Large Databases (VLDB). 337--348","author":"Fan W."},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/582410.582413"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1071610.1071614"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/1055558.1055585"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.2307\/2274850"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.2000.2882"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1007\/11601524_10"},{"key":"e_1_2_1_18_1","volume-title":"Proceedings of the XML Database Symposium (XSYM). 5--20","author":"Hidders J."},{"key":"e_1_2_1_19_1","volume-title":"Proceedings of the International Workshop on Web and Database (WebDB). 85--90","author":"Hidders J."},{"key":"e_1_2_1_20_1","doi-asserted-by":"crossref","unstructured":"Immerman N. 1999. Descriptive Complexity. Springer.  Immerman N. 1999. Descriptive Complexity. Springer.","DOI":"10.1007\/978-1-4612-0539-5"},{"key":"e_1_2_1_21_1","first-page":"67","article-title":"A catalog of complexity classes. In Handbook of Theoretical Computer Science. Vol. 1. Elsevier Science Publishers B.V","volume":"2","author":"Johnson D. S.","year":"1990","journal-title":"Chapter"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/1189769.1189771"},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of the International Conference on Data Engineering (ICDE). 42--53","author":"Krishnamurthy R."},{"key":"e_1_2_1_24_1","volume-title":"Proceedings of the XML Database Symposium (XSYM). 1--18","author":"Krishnamurthy R."},{"key":"e_1_2_1_25_1","volume-title":"Proceedings of the International Conference on Very Large Databases (VLDB). 144--155","author":"Krishnamurthy R."},{"key":"e_1_2_1_26_1","doi-asserted-by":"crossref","unstructured":"Libkin L. 2004. Elements of Finite Model Theory. Springer.   Libkin L. 2004. Elements of Finite Model Theory. Springer.","DOI":"10.1007\/978-3-662-07003-1"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24741-8_28"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-30570-5_8"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/308386.308402"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/1071596.1071602"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(96)00293-9"},{"key":"e_1_2_1_32_1","unstructured":"Van den Bussche J. 1992. Complex object manipulation through identifiers: An algebraic perspective. Tech. rep. 92-41 Department of Mathematics and Computer Science University of Antwerp.  Van den Bussche J. 1992. Complex object manipulation through identifiers: An algebraic perspective. Tech. rep. 92-41 Department of Mathematics and Computer Science University of Antwerp."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(99)00301-1"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1996.0037"},{"key":"e_1_2_1_35_1","unstructured":"World Wide Web Consortium. 2002. XQuery 1.0 and XPath 2.0 Formal Semantics. W3C Working Draft. http:\/\/www.w3.org\/TR\/query-algebra\/.  World Wide Web Consortium. 2002. XQuery 1.0 and XPath 2.0 Formal Semantics. W3C Working Draft. http:\/\/www.w3.org\/TR\/query-algebra\/."}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1620585.1620592","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1620585.1620592","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T12:18:01Z","timestamp":1750249081000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1620585.1620592"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2009,12]]},"references-count":35,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2009,12]]}},"alternative-id":["10.1145\/1620585.1620592"],"URL":"https:\/\/doi.org\/10.1145\/1620585.1620592","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"value":"0362-5915","type":"print"},{"value":"1557-4644","type":"electronic"}],"subject":[],"published":{"date-parts":[[2009,12]]},"assertion":[{"value":"2008-04-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-07-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-12-14","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}