He served as Prime Minister from July 2006 to November 2007 .
He was Prime Minister of Poland from July 2006 to November 2007 .