# cypher relationships match p = (n)-[*]-(o) where (n:User and n.user_id =3) or (n:Order and n.is_delivery_requested = false) with *, (relationships(p)) as r return n,o