Information:  - The President of the Portuguese Republic is the executive head of state of Portugal. The powers, functions and duties of prior presidential offices, and their relation with the Prime Minister and cabinets has over time differed with the various Portuguese constitutions.  - Prime Minister (Portuguese: "Primeiro-Ministro") is the current title of the head of government of Portugal. As head of government, the Prime Minister coordinates the actions of ministers, represents the Government of Portugal to the other bodies of state, is accountable to Parliament and keeps the President informed. The Prime Minister can hold the role of head of government with the portfolio of one or more ministries.  - The Portuguese legislative election of 1987 took place on 19 July . In the previous election , in 1985 , the Social Democratic Party had won a minority government managing to survive in coalition with the Democratic and Social Center and the Democratic Renewal Party , and after the approval of a no - confidence motion from the left - wing parties , with the aid of the Democratic Renewal Party , the government fell and Mário Soares , the President at the time , called for a new election . The PSD was very popular going into the election , and was elected to a landslide majority government -- the biggest that a Portuguese party had ever won in a free election . The left - wing Democratic Unity Coalition lost some of its MPs to the Socialist Party and the Democratic Renovator Party lost almost all of its influence , mainly due to its responsibility in the fall of the former government . The right - wing Democratic and Social Center lost almost half of its vote share , due to the effect of tactical voting for the also right - wing , Social Democratic Party . European elections were held on the same day .  - Mário Alberto Nobre Lopes Soares, , , (7 December 1924  7 January 2017) was a Portuguese politician who served as Prime Minister of Portugal from 1976 to 1978 and from 1983 to 1985, and subsequently as the 17th President of Portugal from 1986 to 1996.    After reading the paragraphs above, choose the best answer for the entity that related to 'portuguese legislative election' with the relationship of 'office contested'.  Choices: - head of state  - president  - prime minister  - prime minister of portugal
prime minister of portugal