| 1 | A | B | C | D | E | F | G | H |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 2 | List of Prime Ministers of Somalia - List |  |  |  |  |  |  |  |
| 3 | Name | Name | Portrait | Birth–Death | Election | Took office | Left office | Political party |
| 4 | - | - | - | - | - | - | - | - |
| 5 | 1 | Abdullahi Issa | - | 1921–1988 | 1956 1959 | 29 February 1956 | 1 July 1960 | SYL |
| 6 | - | - | - | - | - | - | - | - |
| 7 | 2 | Muhammad Haji Ibrahim Egal | - | 1928–2002 | — | 1 July 1960 | 12 July 1960 | SYL |
| 8 | 3 | Abdirashid Shermarke | - | 1919–1969 | — | 12 July 1960 | 14 June 1964 | SYL |
| 9 | 4 | Abdirizak Haji Hussein | - | 1924–2014 | 1964 | 14 June 1964 | 15 July 1967 | SYL |
| 10 | (2) | Muhammad Haji Ibrahim Egal | - | 1928–2002 | 1969 | 15 July 1967 | 21 October 1969 (Deposed) | SYL |
| 11 | - | - | - | - | - | - | - | - |
| 12 | Post Abolished (21 October 1969–1 February 1987) | Post Abolished (21 October 1969–1 February 1987) | Post Abolished (21 October 1969–1 February 1987) | Post Abolished (21 October 1969–1 February 1987) | Post Abolished (21 October 1969–1 February 1987) | Post Abolished (21 October 1969–1 February 1987) | Post Abolished (21 October 1969–1 February 1987) | Post Abolished (21 October 1969–1 February 1987) |
| 13 | 5 | Mohammad Ali Samatar | - | 1931–2016 | — | 1 February 1987 | 3 September 1990 | SRSP |
| 14 | 6 | Hawadle Madar | - | 1939–2005 | — | 3 September 1990 | 24 January 1991 (Deposed) | SRSP |
| 15 | - | - | - | - | - | - | - | - |
| 16 | 7 | Umar Ghalib | - | 1930– | — | 24 January 1991 | May 1993 (De facto to 3 January 1997) | USC |
| 17 | Vacant (May 1993–8 October 2000) | Vacant (May 1993–8 October 2000) | Vacant (May 1993–8 October 2000) | Vacant (May 1993–8 October 2000) | Vacant (May 1993–8 October 2000) | Vacant (May 1993–8 October 2000) | Vacant (May 1993–8 October 2000) | Vacant (May 1993–8 October 2000) |
| 18 | - | - | - | - | - | - | - | - |
| 19 | 8 | Ali Khalif Galaydh | Dr. Ali Khalif Galaydh Photo.JPG | 1941– | — | 8 October 2000 | 28 October 2001 | Independent |
| 20 | — | Osman Jama Ali Acting Prime Minister | - | 1941– | — | 28 October 2001 | 12 November 2001 | Independent |
| 21 | 9 | Hassan Abshir Farah | - | 1945– | — | 12 November 2001 | 8 December 2003 | Independent |
| 22 | 10 | Muhammad Abdi Yusuf | - | 1941– | — | 8 December 2003 | 23 December 2004 | Independent |
| 23 | - | - | - | - | - | - | - | - |
| 24 | 11 | Ali Gedi | - | 1952– | — | 23 December 2004 | 30 October 2007 (Resigned) | Independent |
| 25 | — | Salim Ibrow Acting Prime Minister | - | 1942– | — | 30 October 2007 | 24 November 2007 | Independent |
| 26 | 12 | Nur Hassan Hussein | - | 1937– | — | 24 November 2007 | 14 February 2009 | Independent |
| 27 | 13 | Omar Sharmarke | - | 1960– | — | 14 February 2009 | 24 September 2010 | Independent |
| 28 | — | Abdiwahid Gonjeh Acting Prime Minister | - | 1962– | — | 24 September 2010 | 1 November 2010 | Independent |
| 29 | 14 | Mohamed Abdullahi Farmajo | - | 1962– | — | 1 November 2010 | 19 June 2011 | Independent |
| 30 | 15 | Abdiweli Gaas | - | 1965– | — | 19 June 2011 | 20 August 2012 | Independent |
| 31 | - | - | - | - | - | - | - | - |
| 32 | (15) | Abdiweli Gaas Acting Prime Minister | - | 1965– | — | 20 August 2012 | 17 October 2012 | Independent |
| 33 | 16 | Abdi Shirdon | - | 1958– | — | 17 October 2012 | 21 December 2013 | Independent |
| 34 | 17 | Abdiweli Sheikh Ahmed | - | 1959– | — | 21 December 2013 | 24 December 2014 | Independent |
| 35 | (13) | Omar Sharmarke | - | 1960– | — | 24 December 2014 | 1 March 2017 | Independent |
| 36 | 18 | Hassan Ali Khayre | - | 1968– | — | 1 March 2017 | Incumbent | Independent |

Question: Who were the first and third Prime Ministers of Somalia?
Answer: Abdullahi Issa and Abdirashid Shermarke were the first and third Prime Ministers of Somalia.