In the Crime Investigation sandbox I'm trying to find a sequence of crimes that happened in the same location. In particular I'm trying the to find:
"Burglary" crimes that happened after "Bicycle theft" in which the Bicycle theft happened after "Drugs" crimes.
I can find the first part easily enough:
MATCH p =(a:Crime{type:'Burglary'})-[:OCCURRED_AT*2]-(b:Crime{type:'Bicycle theft'})
WHERE a.date > b.date
return p LIMIT 100;
But how would I add the second part of the question ie: "Bicycle theft" after "Drugs" crimes?