Input: The median age in the city was 39.4 years. 24.2% of residents were under the age of 18; 8.1% were between the ages of 18 and 24; 24.7% were from 25 to 44; 28.4% were from 45 to 64; and 14.6% were 65 years of age or older. The gender makeup of the city was 49.0% male and 51.0% female.

Question: How many more people, in terms of percentage, were in the largest age group compared to the smallest?

Input: The fortifications of Mdina are a series of defensive walls which surround the former capital city of Mdina, Malta. The city was founded as Maleth by the Phoenicians in around the 8th century BC, and it later became part of the Roman Empire under the name Melite. The ancient city was surrounded by walls, but very few remains of these have survived. The city walls were rebuilt a number of times, including by the Byzantine Empire in around the 8th century AD, the Arabs in around the 11th century, and the Kingdom of Sicily in the medieval period until the 15th century. Most of the extant fortifications were built by the Order of Saint John between the 16th and 18th centuries. The city has withstood a number of sieges, and it was defeated twice - first by the Aghlabids in 870 and then by Maltese rebels in 1798. Today, the city walls are still intact except for some outworks, and they are among the best preserved fortifications in Malta. Mdina has been on Malta's tentative list of UNESCO World Heritage Sites since 1998.

Question: How many years after the city's first defeat was it defeated again?

Input: According to Eurostat, 82.3% per cent of the population live in privately owned and owner-occupied homes, ranking it as 12th List of countries by home ownership rate globally. It is down from a recent peak of 87.6% in 2008, and has been steadily falling since. The number of Internet users has increased rapidly since 2000from 430,000 their number grew to 1.55 million in 2004, and 3.4 million (48 per cent penetration rate) in 2010. Bulgaria has the third-fastest average Broadband Internet speed in the world after South Korea and Romania with an average speed of 1,611 KBps. Currently there are three active mobile phone operatorsMobiltel, Telenor and Vivacom, Mtel is the largest one with 5.2 million users as of 2010, Telenor has 3,9 million as of 2007 and Vivacom over 1 million.

Question: How many more million are using the internet in 2010 compared to 2004?

Input: The causes of the Polish-Ottoman War of 1672-76 can be traced to 1666. Petro Doroshenko Hetman of Zaporizhian Host, aiming to gain control of Ukraine but facing defeats from other factions struggling over control of that region, in a final bid to preserve his power in Ukraine, signed a treaty with Sultan Mehmed IV in 1669 that recognized the Cossack Hetmanate as a vassal of the Ottoman Empire.:273 In the meantime, Commonwealth forces were trying to put down unrest in Ukraine, but were weakened by decades long wars ). Trying to capitalize on that weakness, Tatars, who commonly raided across the Commonwealth borders in search of loot and plunder, invaded, this time allying themselves with Cossacks under hetman Doroshenko. They were however stopped by Commonwealth forces under hetman John Sobieski, who stopped their first push , defeating them several times, and finally gaining an armistice after the Battle of Podhajce. In 1670, however, hetman Doroshenko tried once again to take over Ukraine, and in 1671 Khan of Crimea, Adil Giray, supportive of the Commonwealth, was replaced with a new one, Selim I Giray, by the Ottoman sultan. Selim entered into an alliance with the Doroshenko's Cossacks; but again like in 1666-67 the Cossack-Tatar forces were dealt defeats by Sobieski. Selim then renewed his oath of allegiance to the Ottoman Sultan and pleaded for assistance, to which the Sultan agreed. Thus an irregular border conflict escalated into a regular war in 1671, as the Ottoman Empire was now prepared to send its regular units onto the battlefield in a bid to try to gain control of that region for itself.:646

Question:
How many years did the Polish-Ottoman War last?