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 Toi invasion was the invasion of northern Kyushu by Jurchen pirates in 1019. At the time, Toi meant "barbarian" in the Korean language. The Toi pirates sailed with about 50 ships from direction of Goryeo, then assaulted Tsushima and Iki, starting 27 March 1019. After the Iki Island garrison comprising 147 soldiers was wiped out, the pirates has proceed to Hakata Bay. For a week, using Noko Island in the Hakata Bay as a base, they sacked villages and kidnapped over 1,000 Japanese, mostly women and young girls, for use as slaves. The Dazaifu, the administrative center of Kyushu, then raised an army and successfully drove the pirates away. During the second failed raid to Matsuura 13 April 1019, three enemies were captured by the Japanese army. They were identified as Koreans. They said that they had guarded the borderland but had been captured by the Toi. However, this was unlikely, and the Japanese officers suspected them because there had been Korean pirates attacking Japan coasts during the Silla period. A few months later, the Goryeo delegate Jeong Jaryang reported that Goryeo forces attacked the pirates off Wonsan and rescued about 260 Japanese. The Korean government then repatriated them to Japan where they were thanked by the Dazaifu and given rewards. There remain detailed reports by two captive women, Kura no Iwame and Tajihi no Akomi. These Jurchen pirates lived in what is today Hamgyongdo, North Korea.
Did the second raid to Matsuura succeed?

Passage: Coming off their road win over the Titans, the Steelers flew to Raymond James Stadium for a Week 3 interconference duel with the Tampa Bay Buccaneers. With quarterback Dennis Dixon recovering from injury, veteran quarterback Charlie Batch made his first start since Week 17 of the 2007 season. Pittsburgh trailed early in the first quarter as Buccaneers kicker Connor Barth got a 40-yard field goal following a Batch interception. Afterwards, the Steelers would answer as Batch completed a 46-yard touchdown pass to wide receiver Mike Wallace. Tampa Bay would respond in the second quarter as Barth nailed a 24-yard field goal, but Pittsburgh would strike back, beginning with a 3-yard touchdown run from running back Rashard Mendenhall. Batch would then find Wallace again on a 41-yard touchdown pass, followed by his 9-yard touchdown pass to wide receiver Hines Ward. The Steelers would pull away in the second half as kicker Jeff Reed booted a 24-yard field goal in the third quarter, followed by defensive end Brett Keisel returning an interception 79yards for a touchdown in the fourth quarter. The Buccaneers would close out the game as running back LeGarrette Blount got a 1-yard touchdown run. With the win, the Steelers got their first 3-0 start since 2007.
How many defensive touchdowns were scored in the game?

Passage: Charles XII then turned south to meet Augustus II, Elector of Saxony, King of Poland and Grand Duke of Lithuania. The Polish-Lithuanian Commonwealth was formally neutral at this point, as Augustus started the war as an Elector of Saxony. Disregarding Polish negotiation proposals supported by the Swedish parliament, Charles crossed into the Commonwealth and decisively defeated the Saxe-Polish forces in the Battle of Klissow in 1702 and in the Battle of Pultusk in 1703. This successful invasion enabled Charles XII to dethrone Augustus II and coerce the Polish sejm to replace him with Stanisaw I Leszczynski in 1704.:694 August II resisted, still possessing control of his native Saxony, but was decisively defeated at the Battle of Fraustadt in 1706, a battle sometimes compared to the Ancient Battle of Cannae due to the Swedish forces' use of double envelopment, with a deadly result for the Saxon army. August II was forced to sign the Treaty of Altranstadt in 1706 in which he made peace with the Swedish Empire,:701 renounced his claims to the Polish crown, accepted Stanisaw Leszczynski as king, and ended his alliance with Russia. Patkul was also extradited and executed by breaking on the wheel in 1707, an incident which, given his diplomatic immunity, infuriated opinion against the Swedish king, who was then expected to win the war against the only hostile power remaining, Tsar Peter's Russia.
Did the Treaty of Altranstadt occur before or after Augustus II was dethroned?