'How to use the result of another query?
I was making some requests on Neo4j, and I've a little trouble at making one in particular.
These are the nodes and relationships I have on my database

Two of the elements:
I want to return the persons who are driving ("conduire") the same "Voiture" as Alice. This is what I wrote:
MATCH ((a:Personne)-[p:Conduire]->(b:Vehicule))
WHERE b.`Type`='Voiture' AND id(b) in [MATCH ((a:Personne)-[p:Conduire]->(b:Vehicule))
WHERE a.Nom='Alice'
RETURN id(b)]
RETURN a.Nom
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


