Uniform is related to Captain. Captain is related to Person. 
Bother is a synonym of Headache. Person wants (to) Headache. 
Uniform <--RelatedTo--> Captain <--RelatedTo--> Person 
Bother <--Synonym--> Headache <--Desires-- Person 