Stem is related to Leaf. Leaf is related to Flag. Flag is related to Material. Material is related to Bean. 
Residence is related to Hotel. 
Stem <--RelatedTo--> Leaf <--RelatedTo--> Flag <--RelatedTo--> Material <--RelatedTo--> Bean 
Residence <--RelatedTo--> Hotel 