querying for t-root [ a-node [ t-node [ a-node [] ] ] ] really should not match anything
internal indexes are the same for nodes of different kinds: PMLTQ-NROU
SELECT DISTINCT
"t"."#idx" AS "t.#idx",
"realchild"."#idx" AS "realchild.#idx",
"falsechild"."#idx" AS "falsechild.#idx"
FROM
"t-root" "t"
JOIN "t-node" "realchild" ON "t"."#idx"="realchild"."#parent_idx"
JOIN "a-node" "falsechild" ON "t"."#idx"="falsechild"."#parent_idx"
) "#qnodes"
) "#count" LIMIT 1000;
querying for
t-root [ a-node [ t-node [ a-node [] ] ] ]
really should not match anything internal indexes are the same for nodes of different kinds: PMLTQ-NROU