search relationship
search relationship function