Question: Who was the prime minister of pakistan when martial law was imposed in 1958?

Disambiguated questions and answers:
context: An eminent reason of Ayub Khan declaring martial law was the canal water disputes-tensions started to rise and the agricultural based economy of Pakistan largely sacrificed. Iskander Mirza failed to deal with the Indian threat. Ayub started to dislike the democratic system. In 1956, the Constituent Assembly of Pakistan approved a constitution that ended Pakistan's status of an independent Dominion of the British Empire, to create the Islamic Republic of Pakistan. Maj. Gen. Iskander Mirza, the last Governor General of Pakistan, simultaneously became the state's first president. However, the new constitution was followed by political turmoil in Pakistan, which saw a succession of four prime ministers - Chaudhry Muhammad Ali, Huseyn Shaheed Suhrawardy, Ibrahim Ismail Chundrigar and Sir Feroz Khan Noon - in a period of two years. There was already a precedent in Governor General Malik Ghulam Muhammad dismissing prime ministers and ruling by decree, and many viewed Mirza as manipulating the constitution and instigating ousters of governments. The One Unit scheme amalgamating the provinces of Pakistan into two wings - West Pakistan and East Pakistan - was politically controversial and proving difficult to administer. The quick succession of prime ministers fostered the view within the military and in the public that Pakistani politicians were too weak and corrupt to govern effectively, and that the parliamentary system was flawed.
question: Who was the prime minister in Pakistan when martial law was imposed in 1958?
short_answers: Feroz Khan Noon
wikipage: 1958 Pakistani coup d'état

context: No context provided
question: Who was the leader who imposed martial law on Pakistan in 1958?
short_answers: Iskander Mirza

context: No context provided
question: Who imposed the 2nd martial law in Pakistan in 1958?
short_answers: Ayub Khan

Long answers:
knowledge: content: The 1958 Pakistani coup d'état refers to the events between October 7, when the President of Pakistan Iskander Mirza abrogated the Constitution of Pakistan and declared martial law, and October 27, when Mirza himself was deposed by Gen. Ayub Khan, the Commander-in-Chief of the Pakistan Army. There were a number of Prime Ministers between 1956 and 1958 and it reached a stage when General Ayub Khan felt the army should take control to restore stability.
wikipage: 1958 Pakistani coup d'état

content: On October 7, President Iskander Mirza declared martial law in Pakistan. He abrogated the constitution of 1956, describing it as "unworkable" and full of "dangerous compromises."[2] He dismissed the government of Sir Feroz Khan Noon, dissolved the National Assembly of Pakistan and the provincial legislatures. 
wikipage: 1958 Pakistani coup d'état
long_answer: The President of Pakistan Iskander Mirza abrogated the Constitution of Pakistan, dismissed the government of Sir Feroz Khan Noon and declared martial law on October 7, 1958. On October 27, 1958 Mirza himself was deposed by Gen. Ayub Khan, the Commander-in-Chief of the Pakistan Army. There were a number of Prime Ministers between 1956 and 1958 and it reached a stage when General Ayub Khan felt the army should take control to restore stability.