Conversation so far:
what did Edward Canby do in the military?
Edward Canby was United States Army officer and a Union general in the American Civil War.

Question: What part of the military was he in?
Self-contained rewrite: What part of the military was Edward Canby in?