human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Election, 1st Member, 1st Party, 2nd Member, 2nd Party
###Question: What was the 2nd Party, when the 1st Member was John Hodgetts-Foley, and the 2nd Member was Hon. Frederick Gough-Calthorpe?
gpt
SELECT 2nd Party FROM table WHERE 1st Member = john hodgetts-foley AND 2nd Member = hon. frederick gough-calthorpe