Ruin is a type of Building. Ruin is related to Disaster. Disaster is related to Earthquake. 
Cognitive is related to Dream. Dream is related to Thought. 
Building <--IsA-- Ruin <--RelatedTo--> Disaster <--RelatedTo--> Earthquake 
Cognitive <--RelatedTo--> Dream <--RelatedTo--> Thought 