Input: Unlike France or Austria, the Crown of Spain could be inherited through the female line. This allowed Charles' sisters Maria Theresa and Margaret Theresa to pass their rights onto the children of their marriages with Louis XIV and Emperor Leopold. Despite being opponents for many years, Louis and William III attempted to resolve the Succession by diplomacy. This resulted in the 1698 Treaty of the Hague and 1700 Treaty of London or the First and Second Partition Treaties between France, Britain and the Dutch Republic.Maria Antonia , daughter of Leopold and Margaret, married Maximillian Emanuel of Bavaria in 1685 and they had one surviving son, Joseph Ferdinand. The 1698 Treaty made the six year old heir to the bulk of the Spanish Monarchy and divided its European territories between France and Austria. Imposing a solution to such an important issue on Spain and Austria always seemed unlikely, even without the deep levels of mutual mistrust between the signatories. The Spanish refused to accept the division of their Empire and on 14 November 1698, Charles published his Will, making Joseph Ferdinand heir to an independent and undivided Spanish Monarchy. When he died of smallpox in February 1699, an alternative was required.

Question: How many years apart were the Treaty of the Hague and the Treaty of London?

Input: In order to remain in contention for the playoffs, the Bills had to defeatand sweepthe Dolphins, which they did in convincing and dominating fashion. J. P. Losman played well with 200 yards passing, three touchdowns and no interceptions. However, his counterpart, Joey Harrington, was ineffective, throwing for only 98 yards with two interceptions and achieved a 0.0 passer rating. After a scoreless first quarter, Losman threw a 33-yard touchdown pass to Robert Royal, putting the Bills ahead 7-0 into halftime. In the third quarter, Losman threw a 27-yard pass to Josh Reed, putting the Bills up by two touchdowns 14-0. In the final quarter, Losman threw another TD pass, this time a 21-yarder to Lee Evans. Miami had the ball on Buffalo's 1-yard line with 0:06 remaining. Looking for a touchdown, Cleo Lemon threw a pass intended for Chris Chambers but was batted down at the line of scrimmage by Ryan Denney, keeping the Dolphins scoreless. With the win, the Bills improved to 7-7.

Question: Which quarterback threw at least two touchdown passes?

Input: After the Treaty of Versailles, treaties with Austria, Hungary, Bulgaria, and the Ottoman Empire were signed. However, the negotiation of the treaty with the Ottoman Empire was followed by strife, and a final peace treaty between the Allied Powers and the country that would shortly become the Republic of Turkey was not signed until 24 July 1923, at Lausanne. Some war memorials date the end of the war as being when the Versailles Treaty was signed in 1919, which was when many of the troops serving abroad finally returned home; by contrast, most commemorations of the war's end concentrate on the armistice of 11 November 1918. Legally, the formal peace treaties were not complete until the last, the Treaty of Lausanne, was signed. Under its terms, the Allied forces left Constantinople on 23 August 1923.

Question: How many nations mentioned signed treaties after the Treaty of Versailles?

Input: In the early 2000s, Flash was widely installed on desktop computers, and was commonly used to display interactive web pages, online games, and to playback video and audio content. In 2005, YouTube was founded by former PayPal employees, and it used Flash Player as a means to display compressed video content on the web. Between 2000 and 2010, numerous businesses used Flash-based websites to launch new products, or to create interactive company portals. Notable users include Nike, Hewlett-Packard, Nokia, General Electric, World Wildlife Fund, HBO, Cartoon Network, Disney and Motorola. After Adobe introduced hardware-accelerated 3D for Flash , Flash websites saw a growth of 3D content for product demonstrations and virtual tours. In 2007, YouTube offered videos in HTML5 format to support the iPhone and iPad, which did not support Flash Player. After a controversy with Apple, Adobe stopped developing Flash Player for Mobile, focussing its efforts on Adobe AIR applications and HTML5 animation. In 2015, Google introduced Google Swiffy to convert Flash animation to HTML5, a tool Google would use to automatically convert Flash web ads for mobile devices. In 2015, YouTube switched to HTML5 technology on all devices, however it will preserve the Flash-based video player for older web browsers.

Question:
What event happened first, Youtube being founded by former PayPal employees, or Youtube switching to HTML5 technology on all devices?