Onion is related to Soup. Soup is related to Flavor. Cheese have Flavor. 
Layer is related to Paint. Paint is related to Wood. Wood is the opposite of Water. Water is related to Bridge. 
Onion <--RelatedTo--> Soup <--RelatedTo--> Flavor <--HasA-- Cheese 
Layer <--RelatedTo--> Paint <--RelatedTo--> Wood <--Antonym--> Water <--RelatedTo--> Bridge 