Input: Article: Maharaja Ranjit Singh's death in the summer of 1839 brought political chaos and the subsequent battles of succession and the bloody infighting between the factions at court weakened the state. Relationships with neighbouring British territories then broke down, starting the First Anglo-Sikh War; this led to a British official being resident in Lahore and the annexation in 1849 of territory south of the Satluj to British India. After the Second Anglo-Sikh War in 1849, the Sikh Empire became the last territory to be merged into British India. In Jhelum 35 British soldiers of HM XXIV regiment were killed by the local resistance during the Indian Rebellion of 1857.[citation needed]

Now answer this question: What did Ranjit Singh's death cause?

Output: political chaos

Input: Article: Kerry's paternal grandparents, shoe businessman Frederick A. "Fred" Kerry and musician Ida Lowe, were immigrants from the Austro-Hungarian Empire. Fred was born as "Fritz Kohn" before he and Ida took on the "Kerry" name and moved to the United States. Fred and Ida were born Jewish, and converted to Catholicism together in Austria. His maternal ancestors were of Scottish and English descent, and his maternal grandfather James Grant Forbes II was a member of the Forbes family, while his maternal grandmother Margaret Tyndal Winthrop was a member of the DudleyWinthrop family. Margaret's paternal grandfather Robert Charles Winthrop served as the 22nd Speaker of the U.S. House of Representatives. Robert's father was Governor Thomas Lindall Winthrop. Thomas' father John Still Winthrop was a great-great-grandson of Massachusetts Bay Colony Governor John Winthrop and great-grandson of Governor Thomas Dudley. Through his mother, John is a first cousin once removed of French politician Brice Lalonde.

Now answer this question: What was Kerry's paternal grandfather's career?

Output: shoe businessman

Input: Article: In December 1978, Gaddafi stepped down as Secretary-General of the GPC, announcing his new focus on revolutionary rather than governmental activities; this was part of his new emphasis on separating the apparatus of the revolution from the government. Although no longer in a formal governmental post, he adopted the title of "Leader of the Revolution" and continued as commander-in-chief of the armed forces. He continued exerting considerable influence over Libya, with many critics insisting that the structure of Libya's direct democracy gave him "the freedom to manipulate outcomes".

Now answer this question: After Gaddafi stepped down from the GPC, what title did he take?

Output:
Leader of the Revolution