CREATE TABLE "1958_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "liberal_ticket" text,
  "independent_socialist_ticket" text,
  "socialist_labor_ticket" text
);

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

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

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

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