Given the task definition and input, reply with output. This task involves creating questions from a given passage that involve some kind of complex reasoning (including numerical reasoning).
The generated questions must require looking at more than one part of the passage to answer. Try to use a variety of reasoning types in your questions (some of the sample reasoning types are illustrated in the 'positive examples' field) and also have a variety of answer types (spans, numbers, dates). A span is a continuous phrase taken directly from the passage or question. In such questions, the answer spans are recommended to be five words. Questions with answer type "number", are expected to start with "How many". For instance, "How long did an event last?" can be phrased as "How many years did an event last?". To increase diversity, try to create more questions for which the answer will be multiple spans. Please create questions that require AT LEAST 2 arithmetic operations as illustrated in the 'positive examples' field. You are encouraged to try DIFFERENT COMBINATIONS of operations and not just limit to the combinations shown in those examples. The more challenging questions you create, the better it is.

Passage: The war left significant legacies in all three countries. In the context of Japanese imperialism, the invasions are seen as the first Japanese attempt to become a global power. The partial occupation of Korea developed the Japanese concept that Korea belonged within Japan's sphere of influence, and the Japanese leaders of the late 19th and the early 20th centuries used the 1592-1597 invasions to reinforce the justification for their 20th century annexation of Korea. In China, the war was used politically to inspire nationalistic resistance against Japanese imperialism during the 20th century. In Chinese academia, historians list the war as one of the Wanli Emperor's "Three Great Punitive Campaigns". Contemporary Chinese historians often use the campaigns as an example of the friendship the two nations shared. In Korea, the war is a historic foundation of Korean nationalism and, as in China, inspired and was used politically to instigate nationalistic resistance against Japanese imperialism during the 20th century. Korea gained several national heroes during the conflict, such as Admiral Yi Sun-sin. Even today, anti-Japanese sentiment in Korea can be traced as far back as the Japanese invasions in 1592, although the principal cause is rooted in more recent events, particularly the hardships suffered by Koreans during the Japanese occupation of Korea from 1910 through 1945.
How many years did Korea suffer hardships from the Japanese occupation?