Hi Gary. Thanks again for your suggestion. While I still think it is the solution, I tried to implement it with my actual dataset, but got an error. Here is my actual cypher statement:
load csv with headers from "file:///pixar.csv" as line
merge (p:Person{name:line.name})
merge (m:Movie{title:line.film})
with p, m, line
call {
with p, m, line
with p, m, line
where line.role\_type \= "DIRECTED"
merge (p)-\[:DIRECTED\]->(m)
}
call {
with p, m, line
with p, m, line
where line.role\_type \= "PRODUCED"
merge (p)-\[:PRODUCED\]->(m)
}
call {
with p, m, line
with p, m, line
where line.role\_type \= "WAS\_SCREEN\_WRITER\_FOR"
merge (p)-\[:WAS\_SCREEN\_WRITER\_FOR\]->(m)
}
call {
with p, m, line
with p, m, line
where line.role\_type \= "WAS\_STORY\_WRITER\_FOR"
merge (p)-\[:WAS\_STORY\_WRITER\_FOR\]->(m)
}
call {
with p, m, line
with p, m, line
where line.role\_type \= "PERFORMED\_SOUNDTRACK\_FOR"
merge (p)-\[:PERFORMED\_SOUNDTRACK\_FOR\]->(m)
}
Running that gave me the error message below:
Neo.ClientError.Statement.SyntaxError
Query cannot conclude with CALL (must be RETURN or an update clause) (line 29, column 1 (offset: 703))
"call {"
Please, what do you think?