# tests/cypher/corpus/library.jsonl, method get_structure_nodes
query: "MATCH (doc:Document {path: $path, latest: true}) MATCH (doc)-[:HAS_STRUCTURE|HAS_CHILD*1..10]->(n:StructureNode) WHERE n.`appearance_order` >= $w_appearance_order AND n.`role` <> $w_role RETURN DISTINCT n { .*, _labels: labels(n) } AS n, doc.path AS dp, doc.version AS dv ORDER BY n.appearance_order, n.id"
---
Match optional=False
  Path var=None selector=None
    Node var=doc labels=(Document) props={path: (Param path), latest: (Lit true)} where=None
  where=None
Match optional=False
  Path var=None selector=None
    Node var=doc labels=* props={} where=None
    Quantified min=1 max=10
      Node var=__a0 labels=* props={} where=None
      Rel var=__r0 types=(HAS_STRUCTURE|HAS_CHILD) dir=out props={} where=None
      Node var=__a1 labels=* props={} where=None
    Node var=n labels=(StructureNode) props={} where=None
  where=(AND (>= (Prop (Var n) appearance_order) (Param w_appearance_order)) (<> (Prop (Var n) role) (Param w_role)))
Return distinct=True order=((Prop (Var n) appearance_order) ASC, (Prop (Var n) id) ASC) skip=None limit=None
  n = (MapProjection (Var n) .* (_labels (Func labels (Var n))))
  dp = (Prop (Var doc) path)
  dv = (Prop (Var doc) version)
