# 00-maestro.md section 12, example 1, input
query: "MATCH (d:Document {latest: true})-[:HAS_STRUCTURE]->(s:StructureNode)\nWHERE s.title CONTAINS 'riesgo'\nRETURN d.name AS doc, count(s) AS n ORDER BY n DESC LIMIT 10"
---
Match optional=False
  Path var=None selector=None
    Node var=d labels=(Document) props={latest: (Lit true)} where=None
    Rel var=__r0 types=(HAS_STRUCTURE) dir=out props={} where=None
    Node var=s labels=(StructureNode) props={} where=None
  where=(CONTAINS (Prop (Var s) title) (Lit "riesgo"))
Return distinct=False order=((Var n) DESC) skip=None limit=(Lit 10)
  doc = (Prop (Var d) name)
  n = (Func count (Var s))
