Task: Question Generation
Input (English): Passage: He represented the Liberal party at the Norwegian Parliament (Storting) 1886-1888 and again in 1892-1898.  He was Minister of Labour (1898–1899, 1900–1902, 1902–1903), a member of the Council of State Division in Stockholm (1899–1900), Minister of Foreign Affairs (1905 and 1905–1907), Prime Minister and Minister of Foreign Affairs (1907–1908), and Minister of Education and Church Affairs (1915–1920). In 1905 became the  prime minister in Stockholm. He was chair of the Norwegian government of Christian Michelsen. In October 1907, Løvland took over as Norwegian Prime Minister when Michelsen resigned. Løvland resigned the position in March 1908.
Output (English): How many years was Løvland Norwegian Prime Minister?