allow filtering relations by entity id (either source or target)