# Exercise 3.2

**URL:** <https://community.neo4j.com/t/exercise-3-2/23644>\
**Category:** Graph Academy\
**Tags:** training, cypher\
**Created:** [August 18, 2020, 8:42am UTC](https://community.neo4j.com/t/exercise-3-2/23644 "2020-08-18T08:42:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeinode](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/codeinode/32/4623_2.png) [@codeinode](https://community.neo4j.com/u/codeinode)\
**Post date:** [August 18, 2020, 8:42am UTC](https://community.neo4j.com/t/exercise-3-2/23644/1 "2020-08-18T08:42:16Z")

</div>

In exercise 3.2, we have to retrieve all people who have written "other" movies, i.e movies other than one with the 'title' - Speed Racer

I'm trying something like

`MATCH (p:Person)-[not :WROTE]->(:Movie {title:"Speed Racer"}) return p`

but its not working. How do I get the desired result?

---

<div class="post-metadata">

**Author:** ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)\
**Post date:** [August 18, 2020, 8:44am UTC](https://community.neo4j.com/t/exercise-3-2/23644/2 "2020-08-18T08:44:58Z")

</div>

Hello @codeinode 🙂

You have to use a `WHERE` clause

```auto
MATCH (p:Person)-[:WROTE]->(m:Movie)
WHERE m.title <> "Speed Racer"
RETURN DISTINCT p

```

Regards,  
Cobra

---

<div class="post-metadata">

**Author:** ![codeinode](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/codeinode/32/4623_2.png) [@codeinode](https://community.neo4j.com/u/codeinode)\
**Post date:** [August 18, 2020, 8:46am UTC](https://community.neo4j.com/t/exercise-3-2/23644/3 "2020-08-18T08:46:13Z")

</div>

@Cobra Thanks for the help!
