Table: election_results_1958_7
Columns: office
republican_ticket
democratic_ticket
liberal_ticket
independent_socialist_ticket
socialist_labor_ticket

Question: Who was on the Socialist Labor ticket in the race against W. Averell Harriman?
SQL: SELECT "socialist_labor_ticket" FROM election_results_1958_7 WHERE "liberal_ticket" = 'w. averell harriman'

Question: Who was the Republican candidate against the Democratic candidate Arthur Levitt?
SQL: SELECT "republican_ticket" FROM election_results_1958_7 WHERE "democratic_ticket" = 'arthur levitt'

Question: Who was the Independent Socialist candidate for the office of comptroller?
SQL: SELECT "independent_socialist_ticket" FROM election_results_1958_7 WHERE "office" = 'comptroller'

Question: Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell?
SQL: SELECT "independent_socialist_ticket" FROM election_results_1958_7 WHERE "liberal_ticket" = 'edward goodell'