CREATE TABLE "1938_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "american_labor_ticket" text,
  "socialist_ticket" text
);

Question: Which American Labor candidate ran against Democratic candidate Robert F. Wagner?
SQL: SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "democratic_ticket"='robert f. wagner';

Question: Which Socialist candidate ran against American Labor candidate Caroline O'Day?
SQL: SELECT "socialist_ticket" FROM "1938_state_election_results" WHERE "american_labor_ticket"='caroline o''day';

Question: Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?
SQL: SELECT "democratic_ticket" FROM "1938_state_election_results" WHERE "socialist_ticket"='edna mitchell blue';

Question: Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?
SQL: SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "socialist_ticket"='herman j. hahn';

Question: Which Republican ran against the American Labor candidate Matthew J. Merritt?
SQL: SELECT "republican_ticket" FROM "1938_state_election_results" WHERE "american_labor_ticket"='matthew j. merritt';

Question: Which American Labor candidate ran against Republican Thomas E. Dewey?
SQL: SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "republican_ticket"='thomas e. dewey';