Detailed Instructions: You are given a paragraph, with numbered sentences, and a question. Write the numbers of the sentences needed to answer the given question. Separate multiple sentence numbers with a comma (", "). E.g. "1, 2" would be the correct response if Sent 1 and Sent 2 are needed to answer the given question (do not include sentences that contain no information that is necessary to answer the question). Sort the sentence numbers in an increasing order (i.e., '1, 2', instead of '2, 1'). Your answer should not contain anything than the sentence numbers separated by a comma (e.g. '1, 2, 3, 4'). The given question requires more than one sentence to answer. So, your answer must contain at least one comma (", ").
See one example below:
Problem: Paragraph- Sent 1: A Republican bid to keep the government open past Friday includes no new money for the construction of a border wall along the U.S.-Mexico border, according to several congressional aides familiar with ongoing talks.
Sent 2: GOP leaders submitted the new offer Tuesday afternoon in an effort to appease Democrats, whose votes are needed to avert a shutdown of federal agencies, several House and Senate aides said.
Sent 3: However, Republicans also insisted on increases in border security and defense spending, including money to repair existing fencing and new surveillance technology to patrol the nearly 2,000-mile border.
Sent 4: Democrats have indicated that they would support such appropriations so long as no money goes toward an actual wall.
Question: Who has to be appeased to keep the government open?.
Solution: 1, 2.
Explanation: The question is: Who has to be appeased to keep the government open? The phrase "appease Democrats" is mentioned in Sent 2, about accepting offer that is mentioned in Sent 1 to "keep the government open". So, Sent 1 and Sent 2 are the sentences needed to answer this question.

Problem: Paragraph- Sent 1: Madrid's Rise to Capital: In 1556, Charles abdicated in favor of his son, Felipe II, good news for Spain and even better for Madrid.
Sent 2: Felipe moved the royal court from Toledo to Madrid in 1561, converting an unimpressive town of less than 15,000 people into the capital of the world's greatest empire.
Sent 3: Madrid soared onward and upward, increasing nearly eightfold in population; Spain's fortunes as a whole were more volatile.
Sent 4: Felipe II took credit for a rousing naval victory at Lepanto, teaming with Venetians against the Turks, but less than two decades later Spain was subjected to the humiliating defeat of its "invincible" armada, at the hands of Sir Francis Drake and a small English navy.
Sent 5: Felipe II's greatest lasting legacy is El Escorial, a grandiose palace and monastery in the foothills of the Sierra de Guadarrama, northwest of Madrid.
Sent 6: Felipe's son, Felipe III, was unfaithful to Spain's new capital.
Sent 7: For several years he held court in Valladolid, though eventually he returned to Madrid.
Sent 8: It was he who ordered the construction of the Plaza Mayor, the magnificent main square that still dignifies the center of the Viejo Madrid.
Sent 9: Other tasteful, 17th-century buildings constructed nearby, such as the foreign ministry and town hall, reveal that the capital was at last being taken seriously.
Sent 10: The Habsburgs bowed out in 1700 with the death of Charles II.
Sent 11: The subsequent war over Spanish succession resulted in the enthronement of the Bourbon candidate, Felipe V. When Madrid's alcazar burned down in 1734, with the loss of many art treasures, Felipe seized the opportunity to build a new, incredibly lavish royal palace.
Sent 12: Madrid's Palacio Real is still used on occasion by King Juan Carlos I for official ceremonies.
Sent 13: Madrid owes much to the civic-mindedness of Charles III, who ruled from 1759 to 1788.
Sent 14: He paved and lighted the streets, installed public fountains, built the Prado museum, and laid out vast promenades and gardens.
Sent 15: Francisco de Goya painted a court portrait of the next king, Charles IV, in which he looked strangely like George Washington.
Sent 16: But Charles was considerably less successful politically than his transatlantic contemporary.
Sent 17: His 20-year reign, weak at best, ended in all-round disaster: abdication, arrest, and war.
Sent 18: Spain again became a battleground in the early 1800s, with British forces taking on Napoleon's troops in the Peninsular War.
Question: Who held court for several years in Valladolid?.
Solution:
6, 7.