human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Entered office as Head of State or Government, Began time as senior G8 leader, Ended time as senior G8 leader, Person, Office
###Question: When did Jacques Chirac stop being a G8 leader?
gpt
SELECT Ended time as senior G8 leader FROM table WHERE Person = Jacques Chirac