In this task, you're given a question, along with a context passage which has extra information available on certain terms mentioned in it. Your job is to determine which sentence(s) from the passage can be used to search for further information needed to answer the question.

[Q]: Question: What did Ahmad Sanjar build the wall out of? Passage:The Abbasid-era geographers report that the town was the centre of a flourishing agricultural region, with a number of dependent suburbs such as Qasr-i Ahnaf. According to al-Muqaddasi, who wrote in ca. 980, the locals were kin of the people of Gharjistan, and the town was a dependency of the rulers, or Shirs, of Gharjistan. A section of the Harbiyya district of the Round city of Baghdad was named Marwrūdiyya () after the people from this city. The town continued to flourish under the Seljuk Empire, when the Seljuk ruler Ahmad Sanjar built the city a new wall, some 5,000 paces in circumference. The town and the surrounding area suffered during the constant conflicts between the Khwarazmshahs and the Ghurids in the late 12th century, and a battle was fought there between the Ghurid ruler Ghiyath al-Din Muhammad (r. 1163–1202) and his Khwarazmian rival Sultan Shah (r. 1172–1193) in 1190. Although the town appears to have escaped the destruction of Marw al-Shahijan by the Mongols, it fell into ruin under the Timurids and was largely abandoned.

[A]: The town continued to flourish under the Seljuk Empire, when the Seljuk ruler Ahmad Sanjar built the city a new wall, some 5,000 paces in circumference


[Q]: Question: Who was the head of the government that recalled Khalid in 841? Passage:Khalid was a member of the Shayban tribe, dominant in the region of Diyar Bakr in the northern Jazira, and third son of Yazid ibn Mazyad al-Shaybani, who served twice as Arab governor (ostikan) of Arminiya (a large province encompassing the whole of Transcaucasia). Khalid served in the same office no less than four times: in 813/814, 828–832, briefly in 841 and again under Caliph al-Wathiq (r. 842–845). In his first tenure, he showed himself conciliatory towards the native Christian population and the nakharar princes, but his second tenure was marked by the brutal suppression of several revolts by local Arab magnates, as well as the harsh treatment of the Christian population. As a result, when his re-appointment to the office was announced in 841, a rebellion broke out, forcing the Abbasid government to recall him immediately. Nevertheless, al-Wathiq assigned Arminiya to Khalid. The latter arrived in the province at the head of an army, and crushed any opposition. He died soon after at Dvin, where he was buried. He was succeeded by his son, Muhammad. His younger son Haytham ibn Khalid ruled in the family's stronghold of Shirvan, and was the first to claim the title of Shirvanshah.

[A]: As a result, when his re-appointment to the office was announced in 841, a rebellion broke out, forcing the Abbasid government to recall him immediately


[Q]: Question: Which city that the Montgomery Canal ran through after an extension has the largest population? Passage:In the Middle Ages Cilthriew was one of the townships in Kerry. The township is also referred to as Kilroith or Kilroyth. Richard Williams makes the claim that Cilthriew and the neighbouring house of Brynllywarch (which was also a township) were in the ownership of the Pugh (ap Hugh) family from at least 1500. A William Pugh of Kilroith is mentioned in 1632, when he purchased from Ann Foxe, widow of Somerset Foxe lands in Kilroith including Maes y Deynant William Pugh of ‘‘Kilthrew’’ was the Sheriff of Montgomeryshire in 1767 and his son William, who was also Sheriff of Montgomeryshire in 1813, became a very successful attorney and purchased the Caer Howell estate in Montgomery. His son was the notable William Pugh, an entrepreneur, who did much to develop trade and infrastructure in the Montgomeryshire Severn valley. He paid for the final extension of the Montgomery Canal from Berriew to Newtown, and for various road building schemes including a road from Abermule along the Mule valley. In Newtown he encouraged the growth of the textile industry and was responsible for the Flannel exchange, designed by Thomas Penson. In 1828 he sold the Caer Howell estate, using the proceeds to develop Brynllywarch. For this work he may have employed T G Newnham and J W Poundley as his architects and surveyors. His schemes were over ambitious and in June 1835 he fled to Caen in Normandy to escape his creditors. This resulted in the Brynllywarch and Cilthriew estates, which then consisted of 27 farms, being sold in 1839 to Richard Leyland (Bullin), a very wealthy banker from Liverpool. Leyland was to give these estates, together with the Leighton Hall Estates to his nephew John Naylor in 1846. The very detailed survey of the estates purchased by Leyland and later John Naylor, drawn up by J W Poundley, is now in the National Library of Wales. John Naylor died on13th July 1889 and the estates continued in the Naylor family ownership until about 1930, when the various farms including Cilthriew were sold.

[A]:
He paid for the final extension of the Montgomery Canal from Berriew to Newtown, and for various road building schemes including a road from Abermule along the Mule valley