# Neo.ClientError.Statement.SyntaxError

**URL:** <https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror/59820>\
**Category:** Neo4j Graph Platform\
**Tags:** migrated\
**Created:** [August 15, 2022, 1:45am UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror/59820 "2022-08-15T01:45:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IchsanALi](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@IchsanALi](https://community.neo4j.com/u/IchsanALi)\
**Post date:** [August 15, 2022, 1:45am UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror/59820/1 "2022-08-15T01:45:49Z")

</div>

I have data:

 ![IchsanALi_0-1660527423006.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/5/8/58918e794875a851d17396863f8e6f1db2fedb88.png "IchsanALi\_0-1660527423006.png")

upload data :

load csv with headers from "file:///data\_latihan.csv" as row  
merge(v:Character{name: row.source})  
merge(t:Character{name: row.target})  
with v, t, row  
call{  
with v, t, row  
with v, t, row  
where row.Relasi = 'Mentions'  
merge(t)-[:MENTIONS]-\>(v)  
}  
call{  
with v, t, row  
with v, t, row  
where row.Relasi = 'Replies\_to'  
merge(t)-[:REPLIES\_TO]-\>(v)  
}  
call{  
with v, t, row  
with v, t, row  
where row.Relasi = 'Tweet'  
merge(t)-[:TWEET]-\>(v)  
}  
call{  
with v, t, row  
with v, t, row  
where row.Relasi = 'MentionsInRetweet'  
merge(t)-[:MentionsInRetweet]-\>(v)  
}  
call{  
with v, t, row  
with v, t, row  
where row.Relasi = 'Retweet'  
merge(t)-[:Retweet]-\>(v)  
}

call graph:

MATCH p=(:Character)-[:TWEET|MENTIONS|REPLIES\_TO|MentionsInRetweet|Retweet]-(:Character)  
RETURN p limit 100

output :

 ![IchsanALi_1-1660527721376.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/4/8/4823b68bcbe4f90b0358656d4a0f8a19b429d9b4.png "IchsanALi\_1-1660527721376.png")

I have a problem calling graph, filter by ket = "ichsan"

I try like this,

MATCH p=(:Character)-[:TWEET|MENTIONS|REPLIES\_TO|MentionsInRetweet|Retweet]-(:Character)

where row.ket = 'ichsan'

RETURN p limit 100

#### Neo.ClientError.Statement.SyntaxError

Variable `row` not defined (line 2, column 7 (offset: 95))  
"where row.ket = 'ichsan'"  
^

---

<div class="post-metadata">

**Author:** ![dana\_canzano](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dana_canzano/32/27392_2.png) [@dana\_canzano](https://community.neo4j.com/u/dana_canzano)\
**Post date:** [August 15, 2022, 11:28am UTC](https://community.neo4j.com/t/neo-clienterror-statement-syntaxerror/59820/2 "2022-08-15T11:28:36Z")

</div>

[@IchsanALi](https://community.neo4j.com/t5/user/viewprofilepage/user-id/14899)

You first cypher

```auto
load csv with headers from "file:///data_latihan.csv" as row
merge(v:Character{name: row.source})
merge(t:Character{name: row.target})
with v, t, row
...
......
.........

```

reads file:///data\_latihan.csv and each row from this file is aliased to variable row and his variable is used in subsequent merge/call statements.

The 2nd cypher statement makes no reference to row and as the first statement is complete it is no longer available in cypher context.

Given 'ichsan' is in your data and from the initial cypher it appears to be associated with nodes which have label :Character. If this is the case then try

```auto
I try like this,

MATCH p=(c:Character)-[:TWEET|MENTIONS|REPLIES_TO|MentionsInRetweet|Retweet]-(:Character)
where c.ket = 'ichsan'
RETURN p limit 100

```

also from a performance perspective if this is a common/frequent query you might want to create an index on :Character(ket);
