# tests/cypher/corpus/library.jsonl, method count_structure_nodes
query: "MATCH (doc:Document {path: $path, latest: true}) MATCH (doc)-[:HAS_STRUCTURE|HAS_CHILD*1..2]->(n:StructureNode) WHERE n.role IN $roles RETURN count(DISTINCT n) AS c"
---
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=2
      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=(IN (Prop (Var n) role) (Param roles))
Return distinct=False order=() skip=None limit=None
  c = (Func count DISTINCT (Var n))
