Neo4J Lab Session

A - Instal Neo4j Community Edition on your computer.

B - Run the two first tutorials (Intro - a guided tour; Cypher - query language)

You should get a dataset like
Pasted Graphic

and get answers like this
Pasted Graphic 1

C - Run the Movie Graph tutorial
=> After creating the database check the four different views (Graph; Table; Text; Code)
=> Check the Database Information

Queries

1 - Build a query to find: the persons linked to a movie started by ‘T’

2 - Build a query to find: the pairs of relationships linked to a movie
(variants: check if there is an answer with repeated pairs of relationships, if not, return them.
Check if it is possible to do this with a repeated variable in the graph pattern)

3 - Build a query to find: the pairs of relationships linked to a movie with the same relationship type

4 - Build a query to find: persons that reviewed or directed a movie

5 - Build a query to find: the titles of movies with corresponding list of non-duplicated persons related to that movie
(extra: return those movies only with duplicate persons)

6 - Build a query to find: the number of actors per movie

7 - Build a query to find: the movies with more than 5 actors

8 - Build a query to find: the actors of the movie with more reviews

9 - Build a query to find: the nodes linked exactly to another node via 2 relationships

10 - Build a query to find: the persons related (directly or indirectly) to a movie with more reviews

11 - Build a query to find: the movies without producers

12 - For each actor and role, list the other actors that have played the same role. All actors must appear.

13 - Check if there is an actor playing more than one role in a movie, and which ones.