Given a context passage, generate a question from the passage such that its answer is shortest continous span from the passage.

John Edward Cain served in the California legislature and during World War I he served in the United States Army.
Which war did John Edward Cain participate in?