How to fetch address for a customer/lead based on purpose : Business

I need help finding the relationships to query for the addresses for a specific customer based on purpose. I know a customer can have more than one address. I also need the column in the address grid called “Purpose” . please share the query to fetch the address based on the role. Thank you

Have look at \Classes\DirParty\findPostalAddressByRole