Command is related to Captain. 
Senator is a type of Legislator. Legislator is a synonym of Lawmaker. Lawmaker is derived from Law. Law is related to Court. 
Command <--RelatedTo--> Captain 
Senator --IsA--> Legislator <--Synonym--> Lawmaker --DerivedFrom--> Law <--RelatedTo--> Court 