I got something like that:
MATCH (a:A) WITH a.id as `aId`, a.acRef as `acRef` MATCH (b:B) WITH b.id as bId, b.bcRef as `bcRef` MATCH (c:C) WHERE acRef=c.aRef and bcRef=c.bRef RETURN aId, bId, c.id as `cId`
but ofcourse it doesn't work because I'm not passing aId and acRef from second subquery to main query. I can do that but then query would execute for really long time (no association between a and b nodes).
Is it possible to make Cypher query with independent subqueries?