This a plain file that contains the commands that can be used to replicate the
hands-on example "HandsOn: Neo4j". It is based on the Movies graph database of
Assignment 3.

Commands are wrapped in a blocks of ``` (according to Markdown:
https://en.wikipedia.org/wiki/Markdown; please use a Markdown viewer for proper
readability) and on top the description of the code is underline with `=======`.

## (0) Preparation
================================================================================

For the setup of the Movies database in Neo4j, we refer to the description of
Assignment 3 (cf. PDF https://dbresearch.uni-salzburg.at/teaching/2023ss/dim/assignment3.pdf)

## (1) Commands (One After Another)
================================================================================
```
MATCH (n)-[r]->(m)
RETURN n,r,m
```

```
MATCH (p:Person { name: "Tom Hanks" })-[r:ACTED_IN]->(m:Movie)
RETURN p,r,m
```

```
MATCH
  (p1:Person { name: "Tom Hanks" })
  -[a1:ACTED_IN]->(m:Movie)<-[a2:ACTED_IN]-
  (p2:Person)
RETURN p1, a1, m, a2, p2
```

```
MATCH v = shortestPath (
    (p1:Person { name: "Christian Bale" })-[*]-(p2:Person { name: "Halle Berry" })
  )
RETURN v
```
