Input (grade 7): He served as Egypt's Minister of State for Foreign Affairs from 1977 until early 1991.
Output (grade 7): He had served as Egypt's Minister of State for Foreign Affairs from 1977 until early 1991.