Input: When Halsey turned TF34 southwards at 11:15, he detached a task group of four of its cruisers and nine of its destroyers under Rear Admiral DuBose, and reassigned this group to TF38. At 14:15, Mitscher ordered DuBose to pursue the remnants of the Japanese Northern Force. His cruisers finished off the light carrier Chiyoda at around 17:00, and at 20:59 his ships sank the destroyer Hatsuzuki after a very stubborn fight. When Admiral Ozawa learned of the deployment of DuBose's relatively weak task group, he ordered battleships Ise and Hyuga to turn southwards and attack it, but they failed to locate DuBose's group, which they heavily outgunned. Halsey's withdrawal of all six of Lee's battleships in his attempt to assist Seventh Fleet had now rendered TF38 vulnerable to a surface counterattack by the decoy Northern Force. At about 23:10, the American submarine Jallao torpedoed and sank the light cruiser Tama of Ozawa's force. This was the last act of the Battle of Cape Engano, andapart from some final air strikes on the retreating Japanese forces on 26 Octoberthe conclusion of the Battle for Leyte Gulf.

Question: What happened first: Halsey detached a task group or conclusion of the Battle for Leyte Gulf?

Input: The Crimean Tatar's invasions of Russia began in 1507, after the death of Moscow's grand duke Ivan III, with the Crimean Khanate attacking the Russian towns of Belev and Kozelsk. Over the course of the 16th century, the outer border of the Wild Steppes was near the city of Ryazan, outside the Oka River. The main path for the invading forces to Moscow was the Muravsky Trail, running from the Crimean Isthmus of Perekop, between the basins of the Dnieper and Severskiy Donets rivers, and finally up to Tula. The Tatars would turn back only after extensive looting and kidnapping, the Tartars usually managed to penetrate 100-200 kilometers into Russian territory. Captives were subsequently sent to the Crimean city of Caffa to be sold into Slavery. As a result, the Russian population in the border regions suffered heavily. Each spring, Russia mobilized up to 65,000 soldiers for border service. The defensive lines consisted of a circuit of fortresses and cities. To protect from invasions by the Nogai Horde in the region between the Volga and Irtysh rivers, the Volga cities of Samara , Tsaritsyn , and Saratov were founded. The most damaging invasions occurred in 1517, 1521 , 1537 , 1552, 1555, 1570-72 , 1589, 1593, 1640, 1666-67 , 1671, and 1688.

Question: What title of nobility did the person who died before Russia was invaded have?

Input: The Hotak dynasty was an Afghan monarchy of the Ghilji Pashtuns, established in April 1709 by Mirwais Hotak after leading a successful revolution against their declining Persian Safavid overlords in the region of Loy Kandahar in what is now southern Afghanistan. It lasted until 1738 when the founder of the Afsharid dynasty, Nader Shah Afshar, defeated Hussain Hotak during the long siege of Kandahar, and started the reestablishment of Iranian suzerainty over all regions lost decades before against the Iranian archrival, the Ottoman Empire, and the Russian Empire. At its peak, the Hotak dynasty ruled briefly over an area which is now Afghanistan, Iran, western Pakistan, and some parts of Tajikistan and Turkmenistan. In 1715, Mirwais died of a natural cause and his brother Abdul Aziz succeeded the monarchy. He was quickly followed by Mahmud who ruled the empire at its largest extent for a mere three years. Following the 1729 Battle of Damghan, where Ashraf Hotak was roundly defeated by Nader Shah, Ashraf was banished to what is now southern Afghanistan with Hotak rule being confined to it. Hussain Hotak became the last ruler until he was also defeated in 1738.

Question: What happened first, Mirwais death or Abdul Aziz succeeding?

Input: The representatives of the Provisional Russian Administration in Principality of Bulgaria, who sympathised with the struggle, were reprimanded by the Russian Emperor in person. These were the decisive reasons for Its failure, parallel with reasons of internal and organizational character. Typical for the uprising was the scale participation of volunteers - Bulgarians of all parts of the country. Some figures as an illustration: 100 volunteers from Sofia, 27 from Tirnovo, 65 from Pazardzhik, 19 from Troyan, 31 from Pleven, 74 from Orhanye, 129 from the Plovdiv district, 17 from Provadia, 30 from Eastern Rumelia and others. A large number of insurgents and leaders of different parts of Macedonia also participated in the uprising. After the Upspring some 30,000 refugees fled to Bulgaria. The failure of the uprising lead to the attention of the Bulgarian political and strategic leaders to liberation of the other parts of the Bulgarian territories and to other main strategic objective - unification of the Principality of Bulgaria and Eastern Roumelia, the later being under Sultans power, but still having a large autonomy. Macedonia and Thrace should have to wait.

Question:
Which city saw more volunteers, Tirnovo or Troyan?