This task involves creating answers to complex questions, from a given passage. Answering these questions, typically involve understanding multiple sentences. Make sure that your answer has the same type as the "answer type" mentioned in input. The provided "answer type" can be of any of the following types: "span", "date", "number". A "span" answer is a continuous phrase taken directly from the passage or question. You can directly copy-paste the text from the passage or the question for span type answers. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words. A "number" type answer can include a digit specifying an actual value. For "date" type answers, use DD MM YYYY format e.g. 11 Jan 1992. If full date is not available in the passage you can write partial date such as 1992 or Jan 1992. If you find multiple spans, please add them all as a comma separated list. Please restrict each span to five words.

Passage: The Turkish Sultan appointed Yuri Khmelnitsky Hetman of the Right-bank Ukraine, who had been the Sultan's prisoner at that time. In July 1677, the Sultan ordered his army  under the command of Ibrahim Pasha to advance towards Chyhyryn. July 30 1677 at the fortress appeared advanced detachments, and on August 3 - the main forces of the Turks. Samoilovich and Grigory Romodanovsky's forces joined on August 10, and only on August 24 they crossed the Sula River on the way to Chigirin. On August 26-27, a skirmish between their and Ottoman troops removed Ottoman observation posts and allowed the rest of the Muscovite and Ukrainian forces to cross the river under the cover of artillery fire. Turkish attempts to drop back into the river the first crossing detachment under the command of Major-General Shepelev were repulsed. Muscovite and Ukrainian cavalry attacked and overwhelmed Turkish-Tatar army camp, on the August 28, inflicting heavy casualties. The following day, Ibrahim Pasha lifted the siege of Chyhyryn and hastily retreated to the Inhul River and beyond. Samoilovich and Grigory Romodanovsky relieved Chyhyryn on September 5. The Ottoman Army had lost 20,000 men and Ibrahim was imprisoned upon his return to Constantinople and Crimean Khan Selim I Giray lost his throne. 
Question: How many days after the skirmish between Samoilovich and Grigory Romodanovsky's forces and Ottoman troops was the Turkish-Tatar army camp attacked? 
Answer type: Number 
1.

Passage: With his health continuing to deteriorate, the Black Prince returned to England in January 1371, whereby now his father Edward III was elderly and also in poor health. The prince's illness was debilitating, and he died on 8 June 1376. Edward III died the following year on 21 June 1377; he was succeeded by the Black Prince's second son Richard II , who was still a child. The treaty at Brétigny left Edward III and England with enlarged holdings in France; however, a small professional French army under the leadership of du Guesclin pushed the English back and, by the time of Charles V's death in 1380, the English only held Calais and a few other coastal cities. It was usual to appoint a regent in the case of a child monarch, but no regent was appointed for Richard II, who nominally exercised the power of kingship from the date of his accession in 1377. However, between 1377 and 1380, actual power was in the hands of a series of councils. The political community preferred this to a regency led by the king's uncle, John of Gaunt, although Gaunt remained highly influential. Richard faced many challenges during his reign, including the Peasants' Revolt led by Wat Tyler in 1381 and an Anglo-Scottish war in 1384-1385. His attempts to raise taxes to pay for his Scottish adventure and for the protection of Calais against the French made him increasingly unpopular. 
Question: How many years did Edward III outlive his son? 
Answer type: Number 
1.

Passage: In Ancient Egypt the Bronze Age begins in the Protodynastic period, c. 3150 BC. The archaic early Bronze Age of Egypt, known as the Early Dynastic Period of Egypt, immediately follows the unification of Lower and Upper Egypt, c. 3100 BC. It is generally taken to include the First and Second Dynasties, lasting from the Protodynastic Period of Egypt until about 2686 BC, or the beginning of the Old Kingdom. With the First Dynasty, the capital moved from Abydos to Memphis with a unified Egypt ruled by an Egyptian god-king. Abydos remained the major holy land in the south. The hallmarks of ancient Egyptian civilization, such as art, architecture and many aspects of religion, took shape during the Early Dynastic period. Memphis in the Early Bronze Age was the largest city of the time.The Old Kingdom of the regional Bronze Age is the name given to the period in the 3rd millennium BC when Egypt attained its first continuous peak of civilization in complexity and achievement - the first of three "Kingdom" periods, which mark the high points of civilization in the lower Nile Valley . The First Intermediate Period of Egypt, often described as a "dark period" in ancient Egyptian history, spanned about 100 years after the end of the Old Kingdom from about 2181 to 2055 BC. Very little monumental evidence survives from this period, especially from the early part of it. The First Intermediate Period was a dynamic time when the rule of Egypt was roughly divided between two competing power bases: Heracleopolis in Lower Egypt and Thebes in Upper Egypt. These two kingdoms would eventually come into conflict, with the Theban kings conquering the north, resulting in the reunification of Egypt under a single ruler during the second part of the 11th Dynasty. 
Question: How many Dynasties were in the unification of Lower and Upper Egypt? 
Answer type: Number 

2.