Please answer the following question: Information: - The Portuguese legislative election of 1985 took place on 6 October . In June of the same year , the former Prime - Minister , Mario Soares , had resigned from the job due to the lack of parliamentary support , the government was composed by a coalition of the two major parties , the center - right Social Democratic and the center - left Socialist , in what was called the Central Bloc , however this was an unstable balance of forces and several members of each party opposed such alliance . The new leader of the Social Democratic Party , Cavaco Silva , elected in May , was among those that never supported such alliance , and short after being elected leader of the party made the coalition fall in July . A new election was called by the President and the Social Democrats won with a short majority and Cavaco became the Prime - Minister . The election was the first of three consecutive election victories for the Social Democratic Party . Meanwhile , a new party had been founded by supporters of the President Ramalho Eanes , the Democratic Renewal Party , led by Herminio Martinho that surprisingly gained 45 MPs in the election and became the parliamentary support of the Cavaco 's government until 1987 , when it removed its support , making Cavaco fall . The Communists and the Socialists lost votes and MPs and the left would only return to the government ten years later , in 1995 . - 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. - Mario 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. What is the relationship between 'portuguese legislative election' and 'prime minister of portugal'?
A:
office contested