Hat is related to Detective. 
Landscape is related to Painting. one thing you do when you Painting is Mask. Mask is related to Hide. 
Hat <--RelatedTo--> Detective 
Landscape <--RelatedTo--> Painting --HasSubevent--> Mask <--RelatedTo--> Hide 