how to find a relationship function - Search