<P> With no party gaining a majority, a coalition was formed with the PML (Q)--a breakaway of the PML (N) and a pro-Musharraf party--leading with MQM . After some political wrangling, Zafarullah Jamali became the Prime Minister, and passed the XVII amendment which partially restored the power of the President to dissolve the National Assembly, but made the dissolution subject to the Supreme Court of Pakistan's approval . </P> <P> Over the authority issues, Prime Minister Jamali resigned in 2004 and Shaukat Aziz was eventually appointed as Prime Minister, securing 151 out of 191 votes in the National Assembly . The XVII amendment featured a semi-presidential system allowing the presidency to keep the interference executive and the judiciary . The general elections in 2008 resulted in the PPP coming to power and supporting the movement to oust Pervez Musharraf . A populist intellectual movement leading to the departure of Pervez Musharraf) allowed Asif Zardari to become President . In 2010, the XVIII Amendment to the Constitution of Pakistan was passed to reverse the XVII amendment; it returned the country to being a parliamentary democratic republic . In addition, the XVIII Amendment removed all powers of the presidency to dissolve the Parliament unilaterally and sweep away the powers amassed by the former presidents Pervez Musharraf and Zia - ul - Haq to maintain a delicate check and balance . </P> <P> Following a contempt of court case, the Supreme Court permanently disqualified Prime Minister Yousuf Raza Gillani . Originally, the PPP nomination was Makhdoom Shahbuddin, but he was forced to withdraw after the ANF issued non-bailable arrest warrants against him . Raja Pervaiz Ashraf became the Prime Minister and remained in office until 2013 . The general election held in 2013 saw the PML (N) almost achieve a supermajority . Following this, Nawaz Sharif was elected as Prime Minister, returning to the post for the third time after a fourteen - year absence, in a democratic transition . In 2017, Sharif was forced to step down as the prime minister following corruption charges against him . </P>

Who is the only leader to be elected pm of pakistan three times