user: Question: What Year was James McClure Deputy, and the Name is Robert McPhearson?
Columns: ['Year', 'Name', 'Political affiliation', 'Deputy', "Deputy's affiliation"]
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['1973–77', 'A. N. Clarke', 'Ulster Unionist', 'John White', 'Ulster Unionist']
SQL:

assistant: SELECT "Year" FROM "Table" WHERE "Deputy" = 'James McClure' AND "Name" = 'Robert McPhearson';