Input: The Ottoman-Safavid War  was one of the many wars between the neighboring arch rivals of Safavid Persia and the Ottoman Empire. Starting with several years prior to the war and up to including most of the war itself, the Safavids were experiencing significant domestic issues and rivalling noble factions within the court since the death of Shah Tahmasp I. The Ottomans decided to declare war in 1577-1578 to exploit the chaos. The war, despite swift Ottoman victories in the first few years and large amounts of support from the Ottoman vassal Crimean Khanate during several stages of the war,, eventually turned being geo-politically and military relatively stale for several years with both parties losing and winning smaller battles till around 1580. It eventually had a turning point following the Battle of Torches on May 7-11, 1583 and the assassination of the Safavid generals Mirza Salman Jaberi and Hamza Mirza. Following these turns of events and internal chaos in the Safavid state, the Ottomans headed towards the eventual victory in 1590.

Question: Which happened first, the death of Shah Tahmasp I, or the Ottoman declaration of war?


Input: The United States Census Bureau estimates that the population of Tennessee was 6,715,984 on July 1, 2017, an increase of 369,689 people since the 2010 United States Census, or 5.8%. This includes a natural increase since the last census of 124,385 people (that is 584,236 births minus 459,851 deaths), and an increase from net migration of 244,537 people into the state. Immigration to the United States from outside the United States resulted in a net increase of 66,412 people, and migration within the country produced a net increase of 178,125 people.

Question: How many of the population increase was not attributed to net migration?


Input: Coming off their road win over the Jaguars, the Bills went home, donned their throwback uniforms, and played a Week 3 duel with the Oakland Raiders. In the first quarter, Buffalo trailed early as Raiders kicker Sebastian Janikowski got a 23-yard and a 35-yard field goal.  In the second quarter, the Bills got on the board with RB Marshawn Lynch's 14-yard TD run.  Oakland responded with Janikowski's 32-yard field goal. In the third quarter, the Raiders increased their lead with QB JaMarcus Russell getting a 1-yard TD run.  In the fourth quarter, Buffalo began to rally as Lynch got a 3-yard TD run.  Oakland immediately responded with Russell completing an 84-yard TD pass to WR Johnnie Lee Higgins.  Afterwards, the Bills completed its rally with QB Trent Edwards completing a 14-yard TD pass to WR Roscoe Parrish.  Then, Buffalo sealed the win with kicker Rian Lindell nailing the game-winning 38-yard field goal. With the win, the Bills improved to 3-0 for the first time since 1992.  With the Patriots' loss to the Dolphins, the Bills are now in first place in the AFC East after 3 weeks. Also, during halftime, former Bills DE Bruce Smith (the NFL's All-Time Sack Leader) was added to the Bills Wall of Fame.

Question: How many field goals longer than 30 yards were kicked in the first two quarters?


Input: According to National Police Authority records, in 2002, 16,212 foreigners were caught committing 34,746 crimes, over half of which turned out to be visa violations (residing/working in Japan without a valid visa). The statistics show that 12,667 cases (36.5%) and 6,487 individuals (40.0%) were Chinese, 5,272 cases (15.72%) and 1,186 individuals (7.3%) were Brazilian, and 2,815 cases (8.1%) and 1,738 individuals (10.7%) were Korean. The total number of crimes committed in the same year by Japanese was 546,934 cases.

Question:
What is the third most common ethnicity to commit a crime in Japan according to the data?