Compare predicates from two different nodes

Try https://docs.dgraph.io/query-language#inequality

eq(predicate, [val1, val2, …, valN])