As you see in image, A is connected to B,C,F,G. When I query A like "Match (n:Label{Name:'Name'})", it's actually returning me B,C,F,G which is right, but I want "B" to be returned only if I query "A","D","E", like if the values of A,D,E are true.
Here D, E could be connected to something else, but when the values of A,D and E are true only then B should be given. Can I achieve that?