Competition is related to Swim. Swim is related to Example. 
Elect is related to Running. Running is related to Captain. Captain is related to Sir. Sir is a synonym of Mate. 
Competition <--RelatedTo--> Swim <--RelatedTo--> Example 
Elect <--RelatedTo--> Running <--RelatedTo--> Captain <--RelatedTo--> Sir <--Synonym--> Mate 