Original: Aziz was elected Prime Minister by parliament on August 27 , 2004 , by a vote of 191 to 151 in the National Assembly of Pakistan , and was sworn in on August 28 , 2004 .
Simplified: He became Prime Minister on August 28 , 2004 and served until November 15 , 2007 .