Pig is related to Barn. Barn is related to Building. you are likely to find Hallway in/at/on Building. you are likely to find Hallway in/at/on Church. 
Writer is related to Poet. 
Pig <--RelatedTo--> Barn <--RelatedTo--> Building <--AtLocation-- Hallway --AtLocation--> Church 
Writer <--RelatedTo--> Poet 