**Describe the bug** Could not find rte error when using path variable in WHERE **How are you accessing AGE (Command line, driver, etc.)?** - terminal **What data setup do we need to do?** ```pgsql SELECT * FROM cypher('graph',$$ CREATE (n)-[:KNOWS {n:'hello'}]->({n:'hello'}) $$) as (a agtype); ``` **What is the command that caused the error?** ```pgsql SELECT * FROM cypher('graph', $$ MATCH p = (m)-[]->(b) WHERE length(p) >1 RETURN p $$) AS (pattern agtype); ``` ``` ERROR: could not find rte for p LINE 3: WHERE length(p) >1 return p ^ ``` **Expected behavior** Expected it to work without error. **Environment (please complete the following information):** - latest (PG13 master)