Answer the question from the given passage. Your answer should be directly extracted from the passage, and it should be a single entity, name, or number, not a sentence.

Example input: Passage: Martin Luther married Katharina von Bora, one of 12 nuns he had helped escape from the Nimbschen Cistercian convent in April 1523, when he arranged for them to be smuggled out in herring barrels. Suddenly, and while I was occupied with far different thoughts, he wrote to Wenceslaus Link, “the Lord has plunged me into marriage. At the time of their marriage, Katharina was 26 years old and Luther was 41 years old. Question: In a letter who did Luther credit for his union with Katharina?
Example output: the Lord
Example explanation: The paragraph clearly states that, Luther has credited the Lord for his union with Katharina, hence the Lord is correct answer.
Q: Passage: The Black Death ravaged much of the Islamic world. Plague was present in at least one location in the Islamic world virtually every year between 1500 and 1850. Plague repeatedly struck the cities of North Africa. Algiers lost 30 to 50 thousand inhabitants to it in 1620–21, and again in 1654–57, 1665, 1691, and 1740–42. Plague remained a major event in Ottoman society until the second quarter of the 19th century. Between 1701 and 1750, thirty-seven larger and smaller epidemics were recorded in Constantinople, and an additional thirty-one between 1751 and 1800. Baghdad has suffered severely from visitations of the plague, and sometimes two-thirds of its population has been wiped out. Question: How long did plague last in the Ottoman empire?
A:
until the second quarter of the 19th century