Exists Function

Match (c:Case),(a:Event),(b:Event{activity:'B'})
where not exists((c)<-[:EVENT_TO_CASE]-(a)<-[:DF*..]-(b)) and  a.activity='A'
return distinct c.name

I have this query
I want to get which case name doesn't have a relation between A and B
The query returned no record but there is a case that have no relation between them
what can I do?

Hi @nesma.zaki ,

You sure you record satisfy the second path condition?