<Tr> <Th> </Th> <Th> Rashidi Kawawa (1926--2009) </Th> <Td> </Td> <Td> 22 January 1962 </Td> <Td> 9 December 1962 </Td> <Td> </Td> <Td> Tanganyika African National Union </Td> </Tr> <Tr> <Td_colspan="7"> Post abolished (9 December 1962--29 October 1964) </Td> </Tr> <Table> <Tr> <Th> No </Th> <Th> Prime Minister (Birth--Death) </Th> <Th> Portrait </Th> <Th_colspan="2"> Tenure </Th> <Th_colspan="2"> Political affiliation (at time of appointment) </Th> <Th> President (s) </Th> </Tr> <Tr> <Th> Took office </Th> <Th> Left office </Th> </Tr> <Tr> <Td_colspan="8"> Post abolished (1 November 1964--17 February 1972) </Td> </Tr> <Tr> <Th> </Th> <Th> Rashidi Kawawa (1924--2009) </Th> <Td> </Td> <Td> 17 February 1972 </Td> <Td> 13 February 1977 </Td> <Td> </Td> <Td> Tanganyika African National Union </Td> <Td> Nyerere </Td> </Tr> <Tr> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Nyerere </Td> </Tr> <Tr> <Th> </Th> <Th> Edward Sokoine (1938--1984) </Th> <Td> </Td> <Td> 13 February 1977 </Td> <Td> 7 November 1980 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Nyerere </Td> </Tr> <Tr> <Th> </Th> <Th> Cleopa Msuya (1932--) </Th> <Td> </Td> <Td> 7 November 1980 </Td> <Td> 24 February 1983 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Nyerere </Td> </Tr> <Tr> <Th> (2) </Th> <Th> Edward Sokoine (1938--1984) </Th> <Td> </Td> <Td> 24 February 1983 </Td> <Td> 12 April 1984 (died in office .) </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Nyerere </Td> </Tr> <Tr> <Th> </Th> <Th> Salim Ahmed Salim (1942--) </Th> <Td> </Td> <Td> 24 April 1984 </Td> <Td> 5 November 1985 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Nyerere </Td> </Tr> <Tr> <Th> 5 </Th> <Th> Joseph Warioba (1940--) </Th> <Td> </Td> <Td> 5 November 1985 </Td> <Td> 9 November 1990 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Mwinyi </Td> </Tr> <Tr> <Th> 6 </Th> <Th> John Malecela (1934--) </Th> <Td> </Td> <Td> 9 November 1990 </Td> <Td> 7 December 1994 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Mwinyi </Td> </Tr> <Tr> <Th> (3) </Th> <Th> Cleopa Msuya (1932--) </Th> <Td> </Td> <Td> 7 December 1994 </Td> <Td> 28 November 1995 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Mwinyi Mkapa </Td> </Tr> <Tr> <Th> 7 </Th> <Th> Frederick Sumaye (1950--) </Th> <Td> </Td> <Td> 28 November 1995 </Td> <Td> 30 December 2005 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Mkapa Kikwete </Td> </Tr> <Tr> <Th> 8 </Th> <Th> Edward Lowassa (1953--) </Th> <Td> </Td> <Td> 30 December 2005 </Td> <Td> 7 February 2008 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Kikwete </Td> </Tr> <Tr> <Th> 9 </Th> <Th> Mizengo Pinda (1948--) </Th> <Td> </Td> <Td> 9 February 2008 </Td> <Td> 5 November 2015 </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Kikwete </Td> </Tr> <Tr> <Th> 10 </Th> <Th> Kassim Majaliwa (1961--) </Th> <Td> </Td> <Td> 20 November 2015 </Td> <Td> Incumbent </Td> <Td> </Td> <Td> Chama Cha Mapinduzi </Td> <Td> Magufuli </Td> </Tr> </Table> <Tr> <Th> No </Th> <Th> Prime Minister (Birth--Death) </Th> <Th> Portrait </Th> <Th_colspan="2"> Tenure </Th> <Th_colspan="2"> Political affiliation (at time of appointment) </Th> <Th> President (s) </Th> </Tr>

Who was the first prime minister of tanzania