Finding Specific Actors

Now for a challenge.

We are interested in actors in the movie, The Matrix.

How many actors in the movie The Matrix were born after 1960?

Use the Neo4j Browser window to the right of the screen to modify the query and enter the answer in the box below.

  • ✓ 4

Hint

Add a WHERE clause to filter by the movie title, The Matrix and a person’s born value greater than 1960.

Solution

You can run the following query to find the answer:

cypher
MATCH (a:Person)-[:ACTED_IN]->(m:Movie)
WHERE m.title = 'The Matrix' AND a.born > 1960
RETURN a.name, a.born

Summary

In this challenge, you demonstrated your skills in filtering a query. In the next module, you will learn how to add data to the graph.

Chatbot

Hi, I am an Educational Learning Assistant for Intelligent Network Exploration. You can call me E.L.A.I.N.E.

How can I help you today?