@grounded_sage just so I understand correctly it looks like you're trying to find tripples of entities that share and address id? (or share customer/address but not bank?)
and this is assuming that (not= ?e ?e2)
?
I’m trying to find everything that shares the sam address-id. Keeping all of the first pattern match. So the following matches I just want to add the data or provide a default empty string etc if not available
is address-id :db.unique/identity
and are :customer/address-id
and :bank/address-id
a :db.type/ref
? Maybe
[:find (pull ?e [:customer/_address-id :bank/_address-id :address/_address-id])
:where [_ :address/address-id ?e]]