# Neo.ClientError.Statement.SyntaxError using |

**URL:** <https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror-using/58517>\
**Category:** General\
**Tags:** migrated\
**Created:** [January 29, 2023, 5:56pm UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror-using/58517 "2023-01-29T17:56:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrAli](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@DrAli](https://community.neo4j.com/u/DrAli)\
**Post date:** [January 29, 2023, 5:56pm UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror-using/58517/1 "2023-01-29T17:56:04Z")

</div>

I am stumped here -

Trying to do a simple match on Node labels.

I copied DIRECTLY from the cypher manual [https://neo4j.com/docs/cypher-manual/current/clauses/match/#match-with-labels](https://neo4j.com/docs/cypher-manual/current/clauses/match/#match-with-labels)

the code

MATCH (n:Movie|Person)  
RETURN n.name AS name, n.title AS title

but when I run it in the sandbox - I get this error

Invalid input '|': expected ")", "WHERE", "{" or a parameter (line 1, column 15 (offset: 14))  
"MATCH (n:Movie|Person)"

Thoughts?

---

<div class="post-metadata">

**Author:** ![DrAli](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@DrAli](https://community.neo4j.com/u/DrAli)\
**Post date:** [January 29, 2023, 8:52pm UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror-using/58517/2 "2023-01-29T20:52:29Z")

</div>

Thank you to glilienfield and elaine - I found the Cypher Manual v4.

So will the test be on version 4 syntax?

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [January 29, 2023, 6:57pm UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror-using/58517/3 "2023-01-29T18:57:03Z")

</div>

That is the new version 5 syntax that allows logical expressions for the label condition. The documentation version is selected in the dropdown menu in the upper lefthand side of the window.

Prior to that, you could construct logical expressions in the 'where' clause, such as:

```auto
MATCH (n)
WHERE n:Movie or n:Person
RETURN n.name AS name, n.title AS title

```

---

<div class="post-metadata">

**Author:** ![elaine\_rosenber](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/elaine_rosenber/32/27409_2.png) [@elaine\_rosenber](https://community.neo4j.com/u/elaine_rosenber)\
**Post date:** [January 29, 2023, 8:55pm UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror-using/58517/4 "2023-01-29T20:55:57Z")

</div>

We have not updated the certification exam to test R5 syntax. We will do so after the courses are updated.

Elaine

---

<div class="post-metadata">

**Author:** ![elaine\_rosenber](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/elaine_rosenber/32/27409_2.png) [@elaine\_rosenber](https://community.neo4j.com/u/elaine_rosenber)\
**Post date:** [January 29, 2023, 8:47pm UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror-using/58517/5 "2023-01-29T20:47:34Z")

</div>

In. the course sandbox we still use V4 of Neo4j so as [@glilienfield](https://community.neo4j.com/t5/user/viewprofilepage/user-id/9010) said, you need to select the V4 docs.
