Nest is related to Hat. Hat is related to Captain. Captain is the opposite of Private. Private is a synonym of Secret. 
Enemy is related to Bullet. Bullet is related to Bean. 
Nest <--RelatedTo--> Hat <--RelatedTo--> Captain <--Antonym--> Private <--Synonym--> Secret 
Enemy <--RelatedTo--> Bullet <--RelatedTo--> Bean 