diff --git a/tests/bugs.xqy b/tests/bugs.xqy index d3c9b78..dfea0b4 100644 --- a/tests/bugs.xqy +++ b/tests/bugs.xqy @@ -603,4 +603,873 @@ map:entry("name","one-or-more") '{"_id":"N_2_1_1_1_1_L_R_1_1_2_R", "_name":"triple-index", "_parent":"N_2_1_1_1_1_L_R_1_1_2", "_parentLabel":"right", "dedup":"true", "object":"1 (_:ANON18246697083136543884)", "order":"1,0", "permutation":"POS", "predicate":"rdf:type", "subject":"0 (?subject)"}', '{"_id":"N_2_1_1_1_1_R", "_name":"triple-index", "_parent":"N_2_1_1_1_1", "_parentLabel":"right", "dedup":"true", "object":"4 (?4)", "order":"0,4", "permutation":"PSO", "predicate":"", "subject":"0 (?subject)"}' )) +, +map:entry("name","v9_zero_or_one") +=>map:with("plan", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://example.com/model#agendaOf + + + + + + + + + + + + + + + + + + + + + http://example.com/model#hasOfficialDocument + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://www.w3.org/1999/02/22-rdf-syntax-ns#type + + + + + + + + + + + + + http://example.com/model#agendaOf + + + + + + + + + + + + + + + + + + + + + + + http://example.com/model#versionOf + + + + + + + + + + + + + http://example.com/model#versionOf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://example.com/model#languageVersionOf + + + + + + + + + + + + + + + + + + + + http://example.com/model#representationOf + + + + + + + + + + + + + + + + + + http://example.com/model#hasLanguage + + + + + + + + + + + + + http://example.com/model#lastModifiedDate + + + + + + + + + + + + + + + + + + + + + + +) +=>map:with("expected",( +'{"_id":"N", "_name":"select"}', +'{"_id":"N_1", "_name":"distinct", "_parent":"N"}', +'{"_id":"N_1_1", "_name":"project", "_parent":"N_1", "column":["0 (?event)", "1 (?rep)", "2 (?lang)", "3 (?offdoc)", "4 (?type)", "5 (?lv)", "6 (?ext)", "7 (?date)", "8 (?latest_date)"], "order":"0[NULLS_LAST],4[NULLS_LAST],3[NULLS_LAST],5[NULLS_LAST],1[NULLS_LAST]"}', +'{"_id":"N_1_1_1", "_name":"order-by", "_parent":"N_1_1", "num-sorted":"2", "order":"0[NULLS_LAST],4[NULLS_LAST],3[NULLS_LAST],5[NULLS_LAST],1[NULLS_LAST]", "order-spec":["0 (?event)", "4 (?type)", "3 (?offdoc)", "5 (?lv)", "1 (?rep)"]}', +'{"_id":"N_1_1_1_1", "_name":"filter", "_parent":"N_1_1_1", "condition":"?date eq ?latest_date", "is-empty":"false"}', +'{"_id":"N_1_1_1_1_1", "_name":"group", "_parent":"N_1_1_1_1", "aggregate":["max(?date) as ?latest_date", "sample(?event) as ?event", "sample(?rep) as ?rep", "sample(?lang) as ?lang", "sample(?offdoc) as ?offdoc", "sample(?type) as ?type", "sample(?lv) as ?lv", "sample(?ext) as ?ext", "sample(?date) as ?date"], "num-sorted":"0", "order":"0[NULLS_LAST],4[NULLS_LAST],2[NULLS_LAST],6[NULLS_LAST]", "order-spec":["1 (?event)", "2 (?type)", "15 (?lang)", "17 (?ext)"], "type":"sort-group"}', +'{"_id":"N_1_1_1_1_1_1", "_name":"bind", "_parent":"N_1_1_1_1_1", "expr":"fn:substring(?rep, fn:string-length(?rep) - 2) as ?ext"}', +'{"_id":"N_1_1_1_1_1_1_1", "_name":"scatter-join", "_parent":"N_1_1_1_1_1_1", "condition":"13=13", "order":"13[NULLS_IRRELEVANT],14[NULLS_IRRELEVANT]"}', +'{"_id":"N_1_1_1_1_1_1_1_L", "_name":"scatter-join", "_parent":"N_1_1_1_1_1_1_1", "_parentLabel":"left", "condition":"8=8", "order":"8[NULLS_IRRELEVANT],13[NULLS_IRRELEVANT]"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L", "_name":"scatter-join", "_parent":"N_1_1_1_1_1_1_1_L", "_parentLabel":"left", "condition":"3=3", "order":""}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L", "_name":"scatter-join", "_parent":"N_1_1_1_1_1_1_1_L_L", "_parentLabel":"left", "condition":"0=0", "order":"0[NULLS_IRRELEVANT],1[NULLS_IRRELEVANT]"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_L_L_L", "_parentLabel":"left", "dedup":"true", "descending":"false", "is-column":"false", "object":"$entityIri", "order":"0[NULLS_IRRELEVANT]", "permutation":"OPS", "predicate":"", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L_R", "_name":"parallel-hash-join", "_parent":"N_1_1_1_1_1_1_1_L_L_L", "_parentLabel":"right", "condition":"0=0", "order":"0[NULLS_IRRELEVANT],1[NULLS_IRRELEVANT]"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L_R_L", "_name":"zero-or-one", "_parent":"N_1_1_1_1_1_1_1_L_L_L_R", "_parentLabel":"left", "object":"3 (?version)", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L_R_L_1", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_L_L_L_R_L", "dedup":"true", "descending":"false", "is-column":"false", "object":"3 (?version)", "order":"0[NULLS_IRRELEVANT],3[NULLS_IRRELEVANT]", "permutation":"SOP", "predicate":"", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L_R_R", "_name":"parallel-hash-join", "_parent":"N_1_1_1_1_1_1_1_L_L_L_R", "_parentLabel":"right", "condition":"0=0", "order":"0[NULLS_IRRELEVANT],1[NULLS_IRRELEVANT]"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L_R_R_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_L_L_L_R_R", "_parentLabel":"left", "dedup":"true", "descending":"false", "is-column":"false", "object":"2 (?type)", "order":"0[NULLS_IRRELEVANT],2[NULLS_IRRELEVANT]", "permutation":"SOP", "predicate":"rdf:type", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_L_R_R_R", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_L_L_L_R_R", "_parentLabel":"right", "dedup":"true", "descending":"false", "is-column":"false", "object":"1 (?event)", "order":"0[NULLS_IRRELEVANT],1[NULLS_IRRELEVANT]", "permutation":"SOP", "predicate":"", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_R", "_name":"zero-or-one", "_parent":"N_1_1_1_1_1_1_1_L_L", "_parentLabel":"right", "object":"8 (?offdoc)", "subject":"3 (?version)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_R_1", "_name":"sparql-union", "_parent":"N_1_1_1_1_1_1_1_L_L_R", "order":"", "type":"parallel-concat-union"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_R_1_1", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_L_L_R_1", "dedup":"true", "descending":"false", "is-column":"false", "object":"3 (?version)", "order":"3[NULLS_IRRELEVANT],8[NULLS_IRRELEVANT]", "permutation":"OPS", "predicate":"", "subject":"8 (?offdoc)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_L_R_1_2", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_L_L_R_1", "dedup":"true", "descending":"false", "is-column":"false", "object":"8 (?offdoc)", "order":"3[NULLS_IRRELEVANT],8[NULLS_IRRELEVANT]", "permutation":"SOP", "predicate":"", "subject":"3 (?version)"}', +'{"_id":"N_1_1_1_1_1_1_1_L_R", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_L", "_parentLabel":"right", "dedup":"true", "descending":"false", "is-column":"false", "object":"8 (?offdoc)", "order":"8[NULLS_IRRELEVANT],13[NULLS_IRRELEVANT]", "permutation":"OPS", "predicate":"", "subject":"13 (?lv)"}', +'{"_id":"N_1_1_1_1_1_1_1_R", "_name":"parallel-hash-join", "_parent":"N_1_1_1_1_1_1_1", "_parentLabel":"right", "condition":"13=13", "order":"13[NULLS_IRRELEVANT],14[NULLS_IRRELEVANT]"}', +'{"_id":"N_1_1_1_1_1_1_1_R_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_R", "_parentLabel":"left", "dedup":"true", "descending":"false", "is-column":"false", "object":"13 (?lv)", "order":"13[NULLS_IRRELEVANT],16[NULLS_IRRELEVANT]", "permutation":"OPS", "predicate":"", "subject":"16 (?rep)"}', +'{"_id":"N_1_1_1_1_1_1_1_R_R", "_name":"parallel-hash-join", "_parent":"N_1_1_1_1_1_1_1_R", "_parentLabel":"right", "condition":"13=13", "order":"13[NULLS_IRRELEVANT],14[NULLS_IRRELEVANT]"}', +'{"_id":"N_1_1_1_1_1_1_1_R_R_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_R_R", "_parentLabel":"left", "dedup":"true", "descending":"false", "is-column":"false", "object":"15 (?lang)", "order":"13[NULLS_IRRELEVANT],15[NULLS_IRRELEVANT]", "permutation":"SOP", "predicate":"", "subject":"13 (?lv)"}', +'{"_id":"N_1_1_1_1_1_1_1_R_R_R", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_R_R", "_parentLabel":"right", "dedup":"true", "descending":"false", "is-column":"false", "object":"14 (?date)", "order":"13[NULLS_IRRELEVANT],14[NULLS_IRRELEVANT]", "permutation":"SOP", "predicate":"", "subject":"13 (?lv)"}' +)), +map:entry("name","v11_zero_or_one") +=>map:with("plan", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + http://example.com/model#agendaOf + + + + + + + http://example.com/model#agendaOf + + + + + + + + + http://example.com/model#lastModifiedDate + + + + + + + http://example.com/model#representationOf + + + + + + + http://example.com/model#hasLanguage + + + + + http://example.com/model#languageVersionOf + + + + + + + + + + + + http://www.w3.org/1999/02/22-rdf-syntax-ns#type + + + + + + + + + http://example.com/model#hasOfficialDocument + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://example.com/model#versionOf + + + + + http://example.com/model#versionOf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +) +=>map:with("expected",( +'{"_id":"N", "_name":"select"}', +'{"_id":"N_1", "_name":"distinct", "_parent":"N"}', +'{"_id":"N_1_1", "_name":"project", "_parent":"N_1", "cardinalities":"(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06)", "column":["0 (?event)", "1 (?rep)", "2 (?lang)", "3 (?offdoc)", "4 (?type)", "5 (?lv)", "6 (?ext)", "7 (?date)", "8 (?latest_date)"], "cost":"-nan", "cpu-cost":"0/inf/-nan/inf/-nan", "dcpu-cost":"0/1.83566e+08/0/1.6521e+09/0", "estimated-count":"7.46611e-06", "id":"4829368362682332634", "io-cost":"0/3.78176e+07/0/3.4036e+08/0", "max-dmem-cost":"0.666667", "max-mem-cost":"8.89316e+06", "min-dmem-cost":"0.666667", "min-mem-cost":"1.04557e+07", "nw-cost":"101/6.66842e+08/0/6.00157e+09/0", "order":"0,4,3,5,1"}', +'{"_id":"N_1_1_1", "_name":"order-by", "_parent":"N_1_1", "allow-disk-based-algorithm":"true", "cardinalities":"(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06)", "cost":"-nan", "cpu-cost":"0/inf/-nan/inf/-nan", "dcpu-cost":"0/1.83566e+08/0/1.6521e+09/0", "estimated-count":"7.46611e-06", "id":"5513871949623171810", "io-cost":"0/3.78176e+07/0/3.4036e+08/0", "max-dmem-cost":"0.666667", "max-mem-cost":"8.89316e+06", "memory-budget-bytes":"314436354", "memory-fraction":"0.01", "min-dmem-cost":"0.666667", "min-mem-cost":"1.04557e+07", "num-sorted":"2", "nw-cost":"101/6.66842e+08/0/6.00157e+09/0", "order":"0,4,3,5,1", "order-spec":["0 (?event)", "4 (?type)", "3 (?offdoc)", "5 (?lv)", "1 (?rep)"], "total-memory-bytes":"0"}', +'{"_id":"N_1_1_1_1", "_name":"filter", "_parent":"N_1_1_1", "cardinalities":"(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06)", "condition":"?date eq ?latest_date", "cost":"2.35586e+10", "cpu-cost":"0/8.38484e+09/7.19822/8.38484e+09/7.19822", "dcpu-cost":"0/1.83566e+08/0/1.6521e+09/0", "estimated-count":"7.46611e-06", "id":"17242677487444134174", "io-cost":"0/3.78176e+07/0/3.4036e+08/0", "is-empty":"false", "max-dmem-cost":"0.666667", "max-mem-cost":"8.38106e+06", "min-dmem-cost":"0.666667", "min-mem-cost":"9.1623e+06", "nw-cost":"101/6.66842e+08/0/6.00157e+09/0", "order":"0,4,2,6"}', +'{"_id":"N_1_1_1_1_1", "_name":"group", "_parent":"N_1_1_1_1", "aggregate":["max(?date) as ?latest_date", "sample(?event) as ?event", "sample(?rep) as ?rep", "sample(?lang) as ?lang", "sample(?offdoc) as ?offdoc", "sample(?type) as ?type", "sample(?lv) as ?lv", "sample(?ext) as ?ext", "sample(?date) as ?date"], "allow-disk-based-algorithm":"true", "cardinalities":"(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06),(7.46611e-06,7.46611e-06)", "cost":"2.35586e+10", "cpu-cost":"0/8.38484e+09/7.19806/8.38484e+09/7.19806", "dcpu-cost":"0/1.83566e+08/0/1.6521e+09/0", "estimated-count":"7.46611e-06", "id":"17467539245668624944", "io-cost":"0/3.78176e+07/0/3.4036e+08/0", "max-dmem-cost":"0.666667", "max-mem-cost":"8.38106e+06", "min-dmem-cost":"0.666667", "min-mem-cost":"9.1623e+06", "nw-cost":"101/6.66842e+08/0/6.00157e+09/0", "order":"0,4,2,6", "order-spec":["1 (?event)", "2 (?type)", "15 (?lang)", "17 (?ext)"], "type":"sort-group"}', +'{"_id":"N_1_1_1_1_1_1", "_name":"sort", "_parent":"N_1_1_1_1_1", "cardinalities":"(0.0520861,1.1468),(0.0524596,1.15502),(0.0520861,1.1468),(0.0520861,3.44039),(0.0520861,4.71662),(0.0520861,4.71662),(0,0),(0,0),(0.0520861,354532),(0.0520861,830),(0.0520861,3.74407e+07),(0,0),(0,0),(0.0520861,350274),(0.0520861,93152),(0.0520861,241),(0.0520861,665174),(0.0524596,0.0524596)", "cost":"2.35586e+10", "cpu-cost":"0/8.38484e+09/0/8.38484e+09/0", "dcpu-cost":"0/1.83566e+08/0/1.6521e+09/0", "estimated-count":"0.0524596", "id":"17467539245668624945", "io-cost":"0/3.78176e+07/0/3.4036e+08/0", "max-dmem-cost":"0.666667", "max-mem-cost":"8.24755e+06", "memory-budget-bytes":"314436354", "memory-fraction":"0.01", "min-dmem-cost":"0.666667", "min-mem-cost":"9.0288e+06", "num-sorted":"0", "nw-cost":"101/6.66842e+08/0/6.00157e+09/0", "order-spec":["1 (?event)", "2 (?type)", "15 (?lang)", "17 (?ext)"], "total-memory-bytes":"127"}', +'{"_id":"N_1_1_1_1_1_1_1", "_name":"bind", "_parent":"N_1_1_1_1_1_1", "allow-disk-based-algorithm":"true", "cardinalities":"(0.0520861,1.1468),(0.0524596,1.15502),(0.0520861,1.1468),(0.0520861,3.44039),(0.0520861,4.71662),(0.0520861,4.71662),(0,0),(0,0),(0.0520861,354532),(0.0520861,830),(0.0520861,3.74407e+07),(0,0),(0,0),(0.0520861,350274),(0.0520861,93152),(0.0520861,241),(0.0520861,665174),(0.0524596,0.0524596)", "cost":"2.14358e+10", "cpu-cost":"0/1.34587e+07/8.37138e+09/1.34591e+07/8.37138e+09", "dcpu-cost":"0/1.50888e+06/1.82058e+08/1.3582e+07/1.63852e+09", "estimated-count":"0.0524596", "expr":"fn:substring(?rep, fn:string-length(?rep) - 2) as ?ext", "id":"17426030252647911313", "io-cost":"0/376244/3.74414e+07/3.3879e+06/3.36972e+08", "max-dmem-cost":"0.666667", "max-mem-cost":"8.24241e+06", "min-dmem-cost":"0.666667", "min-mem-cost":"8.24241e+06", "nw-cost":"101/7.07987e+06/6.59762e+08/6.37193e+07/5.93786e+09", "order":""}', +'{"_id":"N_1_1_1_1_1_1_1_1", "_name":"scatter-join", "_parent":"N_1_1_1_1_1_1_1", "cardinalities":"(0.0520861,1.1468),(0.0524596,1.15502),(0.0520861,1.1468),(0.0520861,3.44039),(0.0520861,4.71662),(0.0520861,4.71662),(0,0),(0,0),(0.0520861,354532),(0.0520861,830),(0.0520861,3.74407e+07),(0,0),(0,0),(0.0520861,350274),(0.0520861,93152),(0.0520861,241),(0.0520861,665174)", "condition":"0=0", "cost":"2.14358e+10", "cpu-cost":"0/1.34587e+07/8.37138e+09/1.34591e+07/8.37138e+09", "dcpu-cost":"0/1.50888e+06/1.82058e+08/1.3582e+07/1.63852e+09", "estimated-count":"0.0524596", "id":"4468365744515936111", "io-cost":"0/376244/3.74414e+07/3.3879e+06/3.36972e+08", "max-dmem-cost":"0.666667", "max-mem-cost":"8.24241e+06", "min-dmem-cost":"0.666667", "min-mem-cost":"8.24241e+06", "nw-cost":"101/7.07987e+06/6.59762e+08/6.37193e+07/5.93786e+09", "order":""}', +'{"_id":"N_1_1_1_1_1_1_1_1_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1", "_parentLabel":"left", "cardinalities":"(1.1468,1.1468)", "cost":"761.028", "cpu-cost":"0/0/0.0103212/0/0.0103212", "dcpu-cost":"0/0/40.997/0/368.973", "dedup":"true", "dnode":"true", "estimated-count":"1.1468", "id":"8342052435353403038", "io-cost":"0/24.8518/2.40724/223.666/21.6652", "max-dmem-cost":"0", "max-mem-cost":"0", "min-dmem-cost":"0", "min-mem-cost":"0", "nw-cost":"101/0/1.1468/101/10.3212", "object":"$entityIri", "order":"0", "permutation":"OPS", "predicate":"", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R", "_name":"parallel-hash-join", "_parent":"N_1_1_1_1_1_1_1_1", "_parentLabel":"right", "cardinalities":"(0.0520861,1.1468),(0.0524596,1.15502),(0.0520861,1.1468),(0.0520861,3.44039),(0.0520861,4.71662),(0.0520861,4.71662),(0,0),(0,0),(0.0520861,354532),(0.0520861,830),(0.0520861,3.74407e+07),(0,0),(0,0),(0.0520861,350274),(0.0520861,93152),(0.0520861,241),(0.0520861,665174)", "condition":"0=0", "cost":"2.14358e+10", "cpu-cost":"0/1.34587e+07/8.37138e+09/1.34591e+07/8.37138e+09", "dcpu-cost":"0/1.50884e+06/1.82058e+08/1.35817e+07/1.63852e+09", "estimated-count":"0.0524596", "id":"11516902948520793729", "io-cost":"0/376217/3.74414e+07/3.38765e+06/3.36972e+08", "max-dmem-cost":"0.666667", "max-mem-cost":"8.24241e+06", "min-dmem-cost":"0.666667", "min-mem-cost":"8.24241e+06", "nw-cost":"103/7.07976e+06/6.59762e+08/6.37192e+07/5.93786e+09", "order":""}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R", "_parentLabel":"left", "cardinalities":"(1.1468,1.1468),(1.15502,1.15502)", "cost":"851.81", "cpu-cost":"0/0/0.0207904/0/0.0207904", "dcpu-cost":"0/0/47.2021/0/424.819", "dedup":"true", "dnode":"true", "estimated-count":"1.15502", "id":"3291027627808537115", "io-cost":"0/37.2777/2.81203/335.499/25.3083", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/2.31004/103/20.7904", "object":"1 (?event)", "order":"0,1", "permutation":"PSO", "predicate":"", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R", "_name":"parallel-hash-join", "_parent":"N_1_1_1_1_1_1_1_1_R", "_parentLabel":"right", "cardinalities":"(0.0520861,1.1468),(0,0),(0.0520861,1.1468),(0.0520861,3.44039),(0.0520861,4.71662),(0.0520861,4.71662),(0,0),(0,0),(0.0520861,354532),(0.0520861,830),(0.0520861,3.74407e+07),(0,0),(0,0),(0.0520861,350274),(0.0520861,93152),(0.0520861,241),(0.0520861,665174)", "condition":"8=8", "cost":"2.14358e+10", "cpu-cost":"0/1.34586e+07/8.37138e+09/1.34589e+07/8.37138e+09", "dcpu-cost":"0/1.50884e+06/1.82058e+08/1.35812e+07/1.63852e+09", "estimated-count":"0.0520861", "id":"13904633426812659401", "io-cost":"0/376217/3.74414e+07/3.38729e+06/3.36972e+08", "max-dmem-cost":"0.444444", "max-mem-cost":"8.2423e+06", "min-dmem-cost":"0.444444", "min-mem-cost":"8.2423e+06", "nw-cost":"103/7.07976e+06/6.59762e+08/6.37191e+07/5.93786e+09", "order":""}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_L", "_name":"hash-join", "_parent":"N_1_1_1_1_1_1_1_1_R_R", "_parentLabel":"left", "cardinalities":"(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(354532,354532),(0,0),(0,0),(0,0),(0,0),(350274,350274),(93152,93152),(241,241),(381101,665174)", "condition":"13=13", "cost":"2.0383e+08", "cpu-cost":"0/8.76254e+06/2.07816e+06/8.76254e+06/2.07816e+06", "dcpu-cost":"0/1.34888e+06/159955/1.21399e+07/1.4396e+06", "estimated-count":"381101", "id":"2242614504466619398", "io-cost":"0/336644/39573.2/3.02979e+06/356159", "max-dmem-cost":"0.222222", "max-mem-cost":"6.33669e+06", "min-dmem-cost":"0.222222", "min-mem-cost":"6.33669e+06", "nw-cost":"103/6.33669e+06/743074/5.70306e+07/6.68767e+06", "order":"13,8"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_L_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_L", "_parentLabel":"left", "cardinalities":"(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(350274,350274),(93152,93152)", "cost":"1.80326e+07", "cpu-cost":"0/0/6314.44/0/6314.44", "dcpu-cost":"0/0/157753/0/1.41978e+06", "dedup":"true", "dnode":"true", "estimated-count":"350802", "id":"1661195092213334520", "io-cost":"0/12.4259/37751.8/111.833/339766", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/701604/103/6.31444e+06", "object":"14 (?date)", "order":"13,14", "permutation":"PSO", "predicate":"", "subject":"13 (?lv)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_L_R", "_name":"hash-join", "_parent":"N_1_1_1_1_1_1_1_1_R_R_L", "_parentLabel":"right", "cardinalities":"(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(354532,354532),(0,0),(0,0),(0,0),(0,0),(371537,371537),(0,0),(241,241),(403626,665174)", "condition":"13=13", "cost":"1.83101e+08", "cpu-cost":"0/7.79234e+06/1.35178e+06/7.79234e+06/1.35178e+06", "dcpu-cost":"0/1.19113e+06/159955/1.07201e+07/1.4396e+06", "estimated-count":"403626", "id":"14815776600263248100", "io-cost":"0/298879/39573.2/2.68991e+06/356159", "max-dmem-cost":"0.222222", "max-mem-cost":"5.63509e+06", "min-dmem-cost":"0.222222", "min-mem-cost":"5.63509e+06", "nw-cost":"103/5.63509e+06/743074/5.07161e+07/6.68767e+06", "order":"13,8"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_L_R_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_L_R", "_parentLabel":"left", "cardinalities":"(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(619472,619472),(0,0),(0,0),(665174,665174)", "cost":"3.41536e+07", "cpu-cost":"0/0/11973.1/0/11973.1", "dcpu-cost":"0/0/284571/0/2.56114e+06", "dedup":"true", "dnode":"true", "estimated-count":"665174", "id":"9797935278401773863", "io-cost":"0/12.4259/70745.3/111.833/636708", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/1.33035e+06/103/1.19731e+07", "object":"13 (?lv)", "order":"16,13", "permutation":"PSO", "predicate":"", "subject":"16 (?rep)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_L_R_R", "_name":"hash-join", "_parent":"N_1_1_1_1_1_1_1_1_R_R_L_R", "_parentLabel":"right", "cardinalities":"(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(354532,354532),(0,0),(0,0),(0,0),(0,0),(371537,371537),(0,0),(241,241)", "condition":"13=13", "cost":"1.44189e+08", "cpu-cost":"0/5.9527e+06/675313/5.9527e+06/675313", "dcpu-cost":"0/906556/159955/8.159e+06/1.4396e+06", "estimated-count":"375894", "id":"13509020847821968444", "io-cost":"0/228122/39573.2/2.05309e+06/356159", "max-dmem-cost":"0.222222", "max-mem-cost":"4.30474e+06", "min-dmem-cost":"0.222222", "min-mem-cost":"4.30474e+06", "nw-cost":"103/4.30474e+06/743074/3.87428e+07/6.68767e+06", "order":"13,8"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_L_R_R_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_L_R_R", "_parentLabel":"left", "cardinalities":"(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(2.12742e+06,2.12742e+06),(0,0),(241,241)", "cost":"1.10475e+08", "cpu-cost":"0/0/38742.6/0/38742.6", "dcpu-cost":"0/0/906556/0/8.159e+06", "dedup":"true", "dnode":"true", "estimated-count":"2.15237e+06", "id":"6090765313925739986", "io-cost":"0/12.4259/228097/111.833/2.05287e+06", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/4.30474e+06/103/3.87426e+07", "object":"15 (?lang)", "order":"13,15", "permutation":"PSO", "predicate":"", "subject":"13 (?lv)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_L_R_R_R", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_L_R_R", "_parentLabel":"right", "cardinalities":"(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(354532,354532),(0,0),(0,0),(0,0),(0,0),(371537,371537)", "cost":"1.90796e+07", "cpu-cost":"0/0/6687.67/0/6687.67", "dcpu-cost":"0/0/159955/0/1.4396e+06", "dedup":"true", "dnode":"true", "estimated-count":"371537", "id":"10666940904566393153", "io-cost":"0/12.4259/39573.2/111.833/356159", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/743074/103/6.68767e+06", "object":"8 (?offdoc)", "order":"13,8", "permutation":"PSO", "predicate":"", "subject":"13 (?lv)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R", "_name":"hash-join", "_parent":"N_1_1_1_1_1_1_1_1_R_R", "_parentLabel":"right", "cardinalities":"(1.1468,1.1468),(0,0),(1.1468,1.1468),(3.05349,3.44039),(3.05349,4.71662),(3.05349,4.71662),(0,0),(0,0),(9.63051,7.04639e+07),(9.63051,830),(9.63051,3.74407e+07)", "condition":"3=3", "cost":"2.12285e+10", "cpu-cost":"0/328.984/8.37138e+09/328.984/8.37138e+09", "dcpu-cost":"0/192.45/1.82058e+08/1732.05/1.63852e+09", "estimated-count":"9.63051", "id":"18444554812488464622", "io-cost":"0/148.935/3.74414e+07/1340.41/3.36972e+08", "max-dmem-cost":"0.222222", "max-mem-cost":"11.4541", "min-dmem-cost":"0.222222", "min-mem-cost":"11.4541", "nw-cost":"103/28.6282/6.59762e+08/770.654/5.93786e+09", "order":""}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_L", "_name":"hash-join", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R", "_parentLabel":"left", "cardinalities":"(1.1468,1.1468),(0,0),(1.1468,1.1468),(3.05349,3.44039),(3.05349,4.71662),(3.05349,4.71662)", "condition":"0=0", "cost":"3093.09", "cpu-cost":"0/3.17164/313.228/3.17164/313.228", "dcpu-cost":"0/47.199/145.251/424.791/1307.26", "estimated-count":"3.05349", "id":"10937299615633635854", "io-cost":"0/77.3666/59.1424/696.299/532.282", "max-dmem-cost":"0.222222", "max-mem-cost":"2.29359", "min-dmem-cost":"0.222222", "min-mem-cost":"2.29359", "nw-cost":"103/2.29359/26.3346/226.642/441.011", "order":""}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_L_L", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R_L", "_parentLabel":"left", "cardinalities":"(1.1468,1.1468),(0,0),(1.1468,1.1468)", "cost":"851.389", "cpu-cost":"0/0/0.0206423/0/0.0206423", "dcpu-cost":"0/0/47.199/0/424.791", "dedup":"true", "dnode":"true", "estimated-count":"1.1468", "id":"12296383376849141725", "io-cost":"0/37.2777/2.81118/335.499/25.3006", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/2.29359/103/20.6423", "object":"2 (?type)", "order":"0,2", "permutation":"PSO", "predicate":"rdf:type", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_L_R", "_name":"zero-or-one", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R_L", "_parentLabel":"right", "cardinalities":"(3.44039,3.44039),(0,0),(0,0),(3.44039,3.44039),(4.71662,4.71662),(4.71662,4.71662)", "cost":"2496.73", "cpu-cost":"0/0/296.742/0/296.742", "dcpu-cost":"0/0/145.251/0/1307.26", "estimated-count":"9.16046", "id":"11982131355882096123", "io-cost":"0/37.2777/59.1424/335.499/532.282", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/26.3346/103/441.011", "object":"3 (?version)", "order":"", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_L_R_1", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R_L_R", "cardinalities":"(1.1468,1.1468),(0,0),(0,0),(1.1468,1.1468)", "cost":"851.389", "cpu-cost":"0/0/0.0206423/0/0.0206423", "dcpu-cost":"0/0/47.199/0/424.791", "dedup":"true", "dnode":"true", "estimated-count":"1.1468", "id":"7486106076243461871", "io-cost":"0/37.2777/2.81118/335.499/25.3006", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/2.29359/103/20.6423", "object":"3 (?version)", "order":"0,3", "permutation":"PSO", "predicate":"", "subject":"0 (?doc)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_R", "_name":"zero-or-one", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R", "_parentLabel":"right", "cardinalities":"(0,0),(0,0),(0,0),(7.04639e+07,7.04639e+07),(0,0),(0,0),(0,0),(0,0),(7.04639e+07,7.04639e+07),(830,830),(3.74407e+07,3.74407e+07)", "cost":"2.10285e+10", "cpu-cost":"0/0/7.97144e+09/0/7.97144e+09", "dcpu-cost":"0/0/1.82058e+08/0/1.63852e+09", "estimated-count":"2.22239e+08", "id":"12112345431103335789", "io-cost":"0/12.4259/3.74414e+07/111.833/3.36972e+08", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/6.59762e+08/103/5.93786e+09", "object":"8 (?offdoc)", "order":"", "subject":"3 (?version)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_R_1", "_name":"sparql-union", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R_R", "cardinalities":"(0,0),(0,0),(0,0),(6.85125e+06,6.85125e+06),(0,0),(0,0),(0,0),(0,0),(6.85125e+06,6.85125e+06)", "cost":"3.57067e+08", "cpu-cost":"0/0/125194/0/125194", "dcpu-cost":"0/0/2.95793e+06/0/2.66213e+07", "estimated-count":"6.95524e+06", "id":"4099319548870819745", "io-cost":"0/12.4259/738730/111.833/6.64857e+06", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/1.39105e+07/103/1.25194e+08", "order":"", "type":"concat-union"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_R_1_1", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R_R_1", "cardinalities":"(0,0),(0,0),(0,0),(3.37364e+06,3.37364e+06),(0,0),(0,0),(0,0),(0,0),(3.47761e+06,3.47761e+06)", "cost":"1.78534e+08", "cpu-cost":"0/0/62597.1/0/62597.1", "dcpu-cost":"0/0/1.47896e+06/0/1.33107e+07", "dedup":"true", "dnode":"true", "estimated-count":"3.47762e+06", "id":"1623141149072088214", "io-cost":"0/12.4259/369359/111.833/3.32423e+06", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/6.95524e+06/103/6.25971e+07", "object":"3 (?version)", "order":"8,3", "permutation":"PSO", "predicate":"", "subject":"8 (?offdoc)"}', +'{"_id":"N_1_1_1_1_1_1_1_1_R_R_R_R_1_2", "_name":"triple-index", "_parent":"N_1_1_1_1_1_1_1_1_R_R_R_R_1", "cardinalities":"(0,0),(0,0),(0,0),(3.47761e+06,3.47761e+06),(0,0),(0,0),(0,0),(0,0),(3.37364e+06,3.37364e+06)", "cost":"1.78534e+08", "cpu-cost":"0/0/62597.1/0/62597.1", "dcpu-cost":"0/0/1.47896e+06/0/1.33107e+07", "dedup":"true", "dnode":"true", "estimated-count":"3.47762e+06", "id":"8472383069706485900", "io-cost":"0/12.4259/369359/111.833/3.32423e+06", "max-dmem-cost":"0.222222", "max-mem-cost":"0", "min-dmem-cost":"0.222222", "min-mem-cost":"0", "nw-cost":"103/0/6.95524e+06/103/6.25971e+07", "object":"8 (?offdoc)", "order":"3,8", "permutation":"PSO", "predicate":"", "subject":"3 (?version)"}' +)) };