Skip to content

Instantly share code, notes, and snippets.

@vladbatushkov
Created May 6, 2019 16:38
Show Gist options
  • Save vladbatushkov/12babfe369d700b292d3c9ead4dc5cab to your computer and use it in GitHub Desktop.
Save vladbatushkov/12babfe369d700b292d3c9ead4dc5cab to your computer and use it in GitHub Desktop.
Search for trips for appropriate days.
MATCH (c1:City { name: "Calais" })<-[:FROM]-(t1:Trip)
MATCH (c2:City { name: "Folkestone" })<-[:FROM]-(t2:Trip)
WHERE t1.departure.day = 6 AND t1.departure.hour = 7 AND t2.departure.day = 12 AND t2.departure.hour = 21
RETURN t1, t2, c1, c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment