context: Mahmoud Ahmadinejad is an Iranian university professor and politician, who became Mayor of the Municipality of Tehran then President of the Islamic Republic of Iran, and he is the sixth president of the Iranian Republic. He assumed the presidency of the Republic since August 3, 2005 after defeating his opponent Hashemi Rafsanjani in the second round of the presidential elections, and he was re-elected on June 12, 2009 at the expense of his opponent, Mir Hussain Mousavi, and he remained president until June 15, 2013 after the new elections.
question: What is the profession of Mahmoud Ahmadinejad before the presidency?
answers.text: Mayor of the Municipality of Tehran