Variables
This page provides an overview of variables in Cypher®.
When you reference parts of a pattern or a query, you do so by naming them. The names you give the different parts are called variables.
In this example:
MATCH (n)-->(b)
RETURN bThe variables are n and b.
| Variables are only visible in the same query part Variables are not carried over to subsequent queries.
If multiple query parts are chained together using  Variables imported into a  CALLsubquery are visible in the whole subqueryEven if the subquery consists of multiple query parts chained together using  |