Input: Read this: Red was also a badge of rank. During the Song dynasty (9061279), officials of the top three ranks wore purple clothes; those of the fourth and fifth wore bright red; those of the sixth and seventh wore green; and the eighth and ninth wore blue. Red was the color worn by the royal guards of honor, and the color of the carriages of the imperial family. When the imperial family traveled, their servants and accompanying officials carried red and purple umbrellas. Of an official who had talent and ambition, it was said "he is so red he becomes purple."
Question: Which number of ranks wore purple clothing in the Song dynasty?

Output: three

Input: Read this: On 21 May, Amer asked Nasser to order the Straits of Tiran blockaded, a move Nasser believed Israel would use as a casus belli. Amer reassured him that the army was prepared for confrontation, but Nasser doubted Amer's assessment of the military's readiness. According to Nasser's vice president Zakaria Mohieddin, although "Amer had absolute authority over the armed forces, Nasser had his ways of knowing what was really going on". Moreover, Amer anticipated an impending Israeli attack and advocated a preemptive strike. Nasser refused the call upon determination that the air force lacked pilots and Amer's handpicked officers were incompetent. Still, Nasser concluded that if Israel attacked, Egypt's quantitative advantage in manpower and arms could stave off Israeli forces for at least two weeks, allowing for diplomacy towards a ceasefire. Towards the end of May, Nasser increasingly exchanged his positions of deterrence for deference to the inevitability of war, under increased pressure to act by both the general Arab populace and various Arab governments. On 26 May Nasser declared, "our basic objective will be to destroy Israel". On 30 May, King Hussein committed Jordan in an alliance with Egypt and Syria.
Question: What country joined Egypt and Syria against Israel?

Output: Jordan

Input: Read this: The subsequent 2005 elections were internationally regarded as the most free and fair in Liberian history. Ellen Johnson Sirleaf, a Harvard-trained economist and former Minister of Finance, was elected as the first female president in Africa. Upon her inauguration, Sirleaf requested the extradition of Taylor from Nigeria and transferred him to the SCSL for trial in The Hague. In 2006, the government established a Truth and Reconciliation Commission to address the causes and crimes of the civil war.
Question: Movement For democracy in Liberia requested the extradition of whom"

Output: Taylor from Nigeria

Input: Read this: The casualties were horrible, especially for the attacking Prussian forces. A grand total of 20,163 German troops were killed, wounded or missing in action during the August 18 battle. The French losses were 7,855 killed and wounded along with 4,420 prisoners of war (half of them were wounded) for a total of 12,275. While most of the Prussians fell under the French Chassepot rifles, most French fell under the Prussian Krupp shells. In a breakdown of the casualties, Frossard's II Corps of the Army of the Rhine suffered 621 casualties while inflicting 4,300 casualties on the Prussian First Army under Steinmetz before the Pointe du Jour. The Prussian Guards Infantry Divisions losses were even more staggering with 8,000 casualties out of 18,000 men. The Special Guards Jager lost 19 officers, a surgeon and 431 men out of a total of 700. The 2nd Guards Infantry Brigade lost 39 officers and 1,076 men. The 3rd Guards Infantry Brigade lost 36 officers and 1,060 men. On the French side, the units holding St. Privat lost more than half their number in the village.
Question: What was the grand total of German casualties and those missing in action?

Output:
20,163