attempt at translating equiJoin, but again get illegal sharing error.