instruction:
This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.
question:
Passage: Between 1639-53, Scotland was involved in the Wars of the Three Kingdoms, a series of wars starting with the Bishops Wars , the Irish Rebellion of 1641, the English Civil War , the Irish Confederate Wars, and finally the subjugation of Ireland and Scotland by the English Roundhead New Model Army. In Scotland itself, from 1644-45 a Scottish civil war was fought between Scottish Royalistssupporters of Charles I under James Graham, 1st Marquis of Montroseand the Covenanters, who had controlled Scotland since 1639 and allied with the English Parliament. The Scottish Royalists, aided by Irish troops, had a rapid series of victories in 1644-45, but were eventually defeated by the Covenanters. The Covenanters then found themselves at odds with the English Parliament, so they crowned Charles II at Scone and thus stated their intention to place him on the thrones of England and Ireland as well. This led to the Third English Civil War, when Scotland was invaded and occupied by the Parliamentarian New Model Army under Oliver Cromwell.
Question: Which year Scotland was involved in the Wars?
Answer type: Date
answer:
{'day': '', 'month': '', 'year': '1639'}.

question:
Passage: Himachal Pradesh has a total population of 6,864,602 including 3,481,873 males and 3,382,729 females as per the final results of the Census of India 2011. This is only 0.57 per cent of Indias total population, recording a growth of 12.81 per cent. The scheduled castes and scheduled tribes account for 25.19 per cent and 5.71 per cent of the population respectively. The sex ratio stood at 972 females per 1000 males, recording a marginal increase from 968 in 2001. The child sex ratio increased from 896 in 2001 to 909 in 2011. The total fertility rate (TFR) per woman in 2015 stood at 1.7, one of the lowest in India.
Question: How many more men lived in Himachal Pradesh in 2011 compared to females?
Answer type: Number
answer:
99144.

question:
Passage: Frederick had been King of Jerusalemand as such claimed suzerainty over Cyprusin right of his wife Isabella II until her death in 1228. That year he arrived first in Cyprus, where he antagonised the nobles, and then in Jerusalem, where he stayed until 1229, leaving in humiliating circumstances after having produced an anti-imperialist reaction in the people. In 1231 he sent Riccardo Filangieri as his marshal. His attempt to assert his authority was opposed by John of Ibelin, the Old Lord of Beirut, who had been regent until Frederick's arrival. On John's death in 1236 the war was taken up by his son Balian. In 1239 Philip of Montfort assumed the leadership of the opposition. Though the ecclesiastical hierarchy and the Knights Templar supported the nobility, the Teutonic Knights and Knights Hospitaller supported Filangieri. In general his rights as regent were recognised but his practical power was denied on the basis of the Assizes and the Haute Cour. His headquarters were in Tyre and he had the allegiance of Bohemond V, Prince of Antioch and Count of Tripoli. He also held the Holy City of Jerusalem itself, which had been negotiated away from the Saracens by Frederick. So long as the Ibelins controlled the opposition, Filangieri could count on the support of their enemies as well. The Italian cities were also divided between the two factions: Pisa supported Filangieri and Genoa the Ibelins. The Ibelins controlled Beirut, Arsuf, and Caesarea as well as the old capital of Acre. In 1231 the citizens of Acre formed a commune with their headquarters at the church of Saint Andrew's in order to unify their opposition to Filangieri. In 1232 John of Ibelin was elected its mayor.
Question: How many years after the citizens of Acre formed a commune to unify their opposition to Filangieri was John of Ibelin elected its mayor?
Answer type: Number
answer:
1.