Slam is related to Lamp. Lamp is related to Room. Gallery is a type of Room. 
Cook is related to Job. Job is related to Psychologist. 
Slam <--RelatedTo--> Lamp <--RelatedTo--> Room <--IsA-- Gallery 
Cook <--RelatedTo--> Job <--RelatedTo--> Psychologist 