Dog is a synonym of Soldier. Marine is a type of Soldier. Marine is related to Seal. 
Prosecution is a synonym of Action. Action is related to Walk. 
Dog <--Synonym--> Soldier <--IsA-- Marine <--RelatedTo--> Seal 
Prosecution <--Synonym--> Action <--RelatedTo--> Walk 