Task: Question Understanding
Input (English): Context : Nathaniel Fanning (31 May 1755 -- 30 September 1805) was an officer in the Continental Navy and later the United States Navy, who served a board Bonhomme Richard during its 1779 battle with HMS Serapis. 
Question : What military branch did Nathaniel Fanning belong to?
Output (English): military branch