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.
Question: Which ministry position lasted longer, Foreign Affairs or Education and Church Affairs?
Answer: Education and Church Affairs