human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Name, Political affiliation, Deputy, Deputy's affiliation
###Question: What Year was james mcclure Deputy, and the Name is robert mcphearson?
gpt
SELECT Year FROM table WHERE Deputy = james mcclure AND Name = robert mcphearson