user: Question: What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar?
Columns: ['Throne Name', 'Title', 'Born-Died', 'Entered office', 'Left office']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['Mohammad Khan Qajar', 'Khan, Shah, Khaqan', '1742–1797', '20 March 1794', '17 June 1797']
SQL:

assistant: SELECT "Entered office" FROM "Table" WHERE "Throne Name" = 'Mohammad Ali Shah Qajar';