Output is related to Bell. Bell is related to Shell. 
Compound is related to Gate. Gate is related to Doorway. you are likely to find Doorway in/at/on Building. Building is related to Bolt. 
Output <--RelatedTo--> Bell <--RelatedTo--> Shell 
Compound <--RelatedTo--> Gate <--RelatedTo--> Doorway --AtLocation--> Building <--RelatedTo--> Bolt 