# tests/cypher/corpus/library.jsonl, method get_model_instance_relationships
query: "MATCH (mi:ModelInstance {uid: $uid}) MATCH (mi)-[r]->(o:ModelInstance) RETURN type(r) AS rel_type, 'out' AS direction, o UNION MATCH (mi:ModelInstance {uid: $uid}) MATCH (mi)<-[r]-(o:ModelInstance) RETURN type(r) AS rel_type, 'in' AS direction, o"
---
Union all=False
  Query
    Match optional=False
      Path var=None selector=None
        Node var=mi labels=(ModelInstance) props={uid: (Param uid)} where=None
      where=None
    Match optional=False
      Path var=None selector=None
        Node var=mi labels=* props={} where=None
        Rel var=r types=* dir=out props={} where=None
        Node var=o labels=(ModelInstance) props={} where=None
      where=None
    Return distinct=False order=() skip=None limit=None
      rel_type = (Func type (Var r))
      direction = (Lit "out")
      o = (Var o)
  Query
    Match optional=False
      Path var=None selector=None
        Node var=mi labels=(ModelInstance) props={uid: (Param uid)} where=None
      where=None
    Match optional=False
      Path var=None selector=None
        Node var=mi labels=* props={} where=None
        Rel var=r types=* dir=in props={} where=None
        Node var=o labels=(ModelInstance) props={} where=None
      where=None
    Return distinct=False order=() skip=None limit=None
      rel_type = (Func type (Var r))
      direction = (Lit "in")
      o = (Var o)
