{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,15]],"date-time":"2026-09-15T01:20:26Z","timestamp":1789435226998,"version":"build-2803163510"},"reference-count":67,"publisher":"Association for Computing Machinery (ACM)","issue":"5","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2022,1]]},"abstract":"<jats:p>Join query evaluation with ordering is a fundamental data processing task in relational database management systems. SQL and custom graph query languages such as Cypher offer this functionality by allowing users to specify the order via the ORDER BY clause. In many scenarios, the users also want to see the first<jats:italic>k<\/jats:italic>results quickly (expressed by the LIMIT clause), but the value of<jats:italic>k<\/jats:italic>is not predetermined as user queries are arriving in an online fashion. Recent work has made considerable progress in identifying optimal algorithms for ranked enumeration of join queries that do<jats:italic>not<\/jats:italic>contain any projections. In this paper, we initiate the study of the problem of enumerating results in ranked order for queries<jats:italic>with projections.<\/jats:italic>Our main result shows that for any acyclic query, it is possible to obtain a near-linear (in the size of the database) delay algorithm after only a linear time preprocessing step for two important ranking functions: sum and lexicographic ordering. For a practical subset of acyclic queries known as star queries, we show an even stronger result that allows a user to obtain a smooth tradeoff between faster answering time guarantees using more preprocessing time. Our results are also extensible to queries containing cycles and unions. We also perform a comprehensive experimental evaluation to demonstrate that our algorithms, which are simple to implement, improve up to three orders of magnitude in the running time over state-of-the-art algorithms implemented within open-source RDBMS and specialized graph databases.<\/jats:p>","DOI":"10.14778\/3510397.3510401","type":"journal-article","created":{"date-parts":[[2022,5,18]],"date-time":"2022-05-18T22:23:10Z","timestamp":1652912590000},"page":"1024-1037","source":"Crossref","is-referenced-by-count":9,"title":["Ranked enumeration of join queries with projections"],"prefix":"10.14778","volume":"15","author":[{"given":"Shaleen","family":"Deep","sequence":"first","affiliation":[{"name":"University of Wisconsin - Madison"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xiao","family":"Hu","sequence":"additional","affiliation":[{"name":"Duke University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Paraschos","family":"Koutris","sequence":"additional","affiliation":[{"name":"University of Wisconsin - Madison"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2022,5,18]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1109\/FOCS.2014.53"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1137\/15M1050987"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/2902251.2902280"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/3034786.3056105"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.is.2011.03.010"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0049422"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1514894.1514909"},{"key":"e_1_2_1_8_1","first-page":"12","article-title":"Subqueries in SPARQL","volume":"749","author":"Angles Renzo","year":"2011","unstructured":"Renzo Angles and Claudio Gutierrez . 2011 . Subqueries in SPARQL . AMW 749 (2011), 12 . Renzo Angles and Claudio Gutierrez. 2011. Subqueries in SPARQL. AMW 749 (2011), 12.","journal-title":"AMW"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.5555\/2392389.2392412"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.14778\/2556549.2556579"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.14778\/2350229.2350242"},{"key":"e_1_2_1_12_1","volume-title":"Io-top-k: Index-access optimized top-k query processing.","author":"Bast Holger","year":"2006","unstructured":"Holger Bast , Debapriyo Majumdar , Ralf Schenkel , Christian Theobalt , and Gerhard Weikum . 2006 . Io-top-k: Index-access optimized top-k query processing. (2006). Holger Bast, Debapriyo Majumdar, Ralf Schenkel, Christian Theobalt, and Gerhard Weikum. 2006. Io-top-k: Index-access optimized top-k query processing. (2006)."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-87477-5_43"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-019-00558-9"},{"key":"e_1_2_1_15_1","volume-title":"Ranked enumeration of MSO logic on words. ICDT","author":"Bourhis Pierre","year":"2021","unstructured":"Pierre Bourhis , Alejandro Grez , Louis Jachiet , and Cristian Riveros . 2021. Ranked enumeration of MSO logic on words. ICDT ( 2021 ). Pierre Bourhis, Alejandro Grez, Louis Jachiet, and Cristian Riveros. 2021. Ranked enumeration of MSO logic on words. ICDT (2021)."},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.14778\/2735479.2735486"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.asoc.2017.07.029"},{"key":"e_1_2_1_18_1","volume-title":"Rishiraj Saha Roy, and Gerhard Weikum","author":"Christmann Philipp","year":"2021","unstructured":"Philipp Christmann , Rishiraj Saha Roy, and Gerhard Weikum . 2021 . Efficient Contextualization using Top-k Operators for Question Answering over Knowledge Graphs . arXiv preprint arXiv:2108.08597 (2021). Philipp Christmann, Rishiraj Saha Roy, and Gerhard Weikum. 2021. Efficient Contextualization using Top-k Operators for Question Answering over Knowledge Graphs. arXiv preprint arXiv:2108.08597 (2021)."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-73681-3_37"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-006-0004-3"},{"key":"e_1_2_1_22_1","volume-title":"Enumeration Algorithms for Conjunctive Queries with Projection. In 24th International Conference on Database Theory (ICDT","author":"Deep Shaleen","year":"2021","unstructured":"Shaleen Deep , Xiao Hu , and Paraschos Koutris . 2021 . Enumeration Algorithms for Conjunctive Queries with Projection. In 24th International Conference on Database Theory (ICDT 2021). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik. Shaleen Deep, Xiao Hu, and Paraschos Koutris. 2021. Enumeration Algorithms for Conjunctive Queries with Projection. In 24th International Conference on Database Theory (ICDT 2021). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik."},{"key":"e_1_2_1_23_1","volume-title":"Ranked Enumeration of Join Queries with Projections. arXiv preprint arXiv:2201.05566","author":"Deep Shaleen","year":"2022","unstructured":"Shaleen Deep , Xiao Hu , and Paraschos Koutris . 2022. Ranked Enumeration of Join Queries with Projections. arXiv preprint arXiv:2201.05566 ( 2022 ). Shaleen Deep, Xiao Hu, and Paraschos Koutris. 2022. Ranked Enumeration of Join Queries with Projections. arXiv preprint arXiv:2201.05566 (2022)."},{"key":"e_1_2_1_24_1","volume-title":"Ranked Enumeration of Conjunctive Query Results. In 24th International Conference on Database Theory.","author":"Deep Shaleen","year":"2021","unstructured":"Shaleen Deep and Paraschos Koutris . 2021 . Ranked Enumeration of Conjunctive Query Results. In 24th International Conference on Database Theory. Shaleen Deep and Paraschos Koutris. 2021. Ranked Enumeration of Conjunctive Query Results. In 24th International Conference on Database Theory."},{"key":"e_1_2_1_25_1","doi-asserted-by":"crossref","unstructured":"Dmitry Duplyakin Robert Ricci Aleksander Maricq Gary Wong Jonathon Duerig Eric Eide Leigh Stoller Mike Hibler David Johnson Kirk Webb etal 2019. The design and operation of CloudLab. In 2019 {USENIX} Annual Technical Conference ({USENIX}{ATC} 19). 1--14. Dmitry Duplyakin Robert Ricci Aleksander Maricq Gary Wong Jonathon Duerig Eric Eide Leigh Stoller Mike Hibler David Johnson Kirk Webb et al. 2019. The design and operation of CloudLab. In 2019 { USENIX } Annual Technical Conference ( { USENIX }{ ATC } 19). 1--14.","DOI":"10.1109\/ICNP.2019.8888128"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/1083784.1083791"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/2723372.2742786"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/565117.565143"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(03)00026-6"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICASSP.2019.8683050"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/28869.28874"},{"key":"e_1_2_1_32_1","volume-title":"Boon Thau Loo, Wenchao Zhou, et al.","author":"Green Todd J","year":"2013","unstructured":"Todd J Green , Shan Shan Huang , Boon Thau Loo, Wenchao Zhou, et al. 2013 . Datalog and recursive query processing. Now Publishers . Todd J Green, Shan Shan Huang, Boon Thau Loo, Wenchao Zhou, et al. 2013. Datalog and recursive query processing. Now Publishers."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1007\/11581116_25"},{"key":"e_1_2_1_34_1","unstructured":"John E Hopcroft Jeffrey D Ullman and AV Aho. 1975. The design and analysis of computer algorithms. John E Hopcroft Jeffrey D Ullman and AV Aho. 1975. The design and analysis of computer algorithms."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1391729.1391730"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1007568.1007593"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3375395.3387646"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2020.2985376"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1007\/11780991_13"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611974331.ch89"},{"key":"e_1_2_1_41_1","volume-title":"Recommendation on academic networks using direction aware citation analysis. arXiv preprint arXiv:1205.1143","author":"K\u00fc\u00e7\u00fcktun\u00e7 Onur","year":"2012","unstructured":"Onur K\u00fc\u00e7\u00fcktun\u00e7 , Erik Saule , Kamer Kaya , and \u00dcmit V \u00c7ataly\u00fcrek . 2012. Recommendation on academic networks using direction aware citation analysis. arXiv preprint arXiv:1205.1143 ( 2012 ). Onur K\u00fc\u00e7\u00fcktun\u00e7, Erik Saule, Kamer Kaya, and \u00dcmit V \u00c7ataly\u00fcrek. 2012. Recommendation on academic networks using direction aware citation analysis. arXiv preprint arXiv:1205.1143 (2012)."},{"key":"e_1_2_1_42_1","volume-title":"A procedure for computing the k best solutions to discrete optimization problems and its application to the shortest path problem. Management science 18, 7","author":"Lawler Eugene L","year":"1972","unstructured":"Eugene L Lawler . 1972. A procedure for computing the k best solutions to discrete optimization problems and its application to the shortest path problem. Management science 18, 7 ( 1972 ), 401--405. Eugene L Lawler. 1972. A procedure for computing the k best solutions to discrete optimization problems and its application to the shortest path problem. Management science 18, 7 (1972), 401--405."},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983323.2983727"},{"key":"e_1_2_1_44_1","unstructured":"Jure Leskovec and Andrej Krevl. 2014. SNAP Datasets: Stanford Large Network Dataset Collection. http:\/\/snap.stanford.edu\/data. Jure Leskovec and Andrej Krevl. 2014. SNAP Datasets: Stanford Large Network Dataset Collection. http:\/\/snap.stanford.edu\/data."},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/1066157.1066173"},{"key":"e_1_2_1_46_1","volume-title":"Proceedings of the 31st international conference on Very large data bases. VLDB Endowment, 1342--1345","author":"Li Chengkai","year":"2005","unstructured":"Chengkai Li , Mohamed A Soliman , Kevin Chen-Chuan Chang , and Ihab F Ilyas . 2005 . RankSQL: supporting ranking queries in relational database management systems . In Proceedings of the 31st international conference on Very large data bases. VLDB Endowment, 1342--1345 . Chengkai Li, Mohamed A Soliman, Kevin Chen-Chuan Chang, and Ihab F Ilyas. 2005. RankSQL: supporting ranking queries in relational database management systems. In Proceedings of the 31st international conference on Very large data bases. VLDB Endowment, 1342--1345."},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v33i01.3301184"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.14778\/1687553.1687618"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/2535926"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3452021.3458814"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/2567948.2576939"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/2213556.2213565"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/2656335"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/1567274.1567278"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.5555\/1325851.1325910"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/1107499.1107505"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2007.367934"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/2783888.2783894"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.websem.2013.08.002"},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/2481244.2481248"},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2003.1260799"},{"key":"e_1_2_1_62_1","doi-asserted-by":"publisher","DOI":"10.14778\/3397230.3397250"},{"key":"e_1_2_1_63_1","volume-title":"Enumeration and Factorization. In Proceedings of the VLDB Endowment. International Conference on Very Large Data Bases","volume":"14","author":"Tziavelis Nikolaos","year":"2021","unstructured":"Nikolaos Tziavelis , Wolfgang Gatterbauer , and Mirek Riedewald . 2021 . Beyond Equi-joins: Ranking , Enumeration and Factorization. In Proceedings of the VLDB Endowment. International Conference on Very Large Data Bases , Vol. 14 . 2599--2612. Nikolaos Tziavelis, Wolfgang Gatterbauer, and Mirek Riedewald. 2021. Beyond Equi-joins: Ranking, Enumeration and Factorization. In Proceedings of the VLDB Endowment. International Conference on Very Large Data Bases, Vol. 14. 2599--2612."},{"key":"e_1_2_1_64_1","doi-asserted-by":"publisher","DOI":"10.1145\/3035918.3035949"},{"key":"e_1_2_1_65_1","doi-asserted-by":"publisher","DOI":"10.1145\/3178876.3186115"},{"key":"e_1_2_1_66_1","first-page":"82","article-title":"Algorithms for acyclic database schemes","volume":"81","author":"Yannakakis Mihalis","year":"1981","unstructured":"Mihalis Yannakakis . 1981 . Algorithms for acyclic database schemes . In VLDB , Vol. 81. 82 -- 94 . Mihalis Yannakakis. 1981. Algorithms for acyclic database schemes. In VLDB, Vol. 81. 82--94.","journal-title":"VLDB"},{"key":"e_1_2_1_67_1","doi-asserted-by":"publisher","DOI":"10.1145\/2396761.2398565"},{"key":"e_1_2_1_68_1","unstructured":"Zhaonian Zou Jianzhong Li Hong Gao and Shuo Zhang. 2010. Finding top-k maximal cliques in an uncertain graph. (2010). Zhaonian Zou Jianzhong Li Hong Gao and Shuo Zhang. 2010. Finding top-k maximal cliques in an uncertain graph. (2010)."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3510397.3510401","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,9,25]],"date-time":"2024-09-25T11:38:08Z","timestamp":1727264288000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3510397.3510401"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,1]]},"references-count":67,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2022,1]]}},"alternative-id":["10.14778\/3510397.3510401"],"URL":"https:\/\/doi.org\/10.14778\/3510397.3510401","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2022,1]]}}}