I'm doing the following cypher query in Neo4j:
START a = node(4107)
MATCH a-[:AttractionFor]->b-[r:Brother]-c-[:AttractionFor]->d
WHERE (r.distance? <= 25)
RETURN distinct d
This return the value of a also, which I don't need. I tried a<>d
and a.name <> b.name
but I get the same result. Also in webadmin it returns nothing (I'm using Everyman's PHP library for neo4j).