CREATE TABLE "1962_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "liberal_ticket" text,
  "conservative_ticket" text,
  "socialist_workers_ticket" text,
  "socialist_labor_ticket" text
);

Question: Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?
SQL: SELECT "democratic_ticket" FROM "1962_state_election_results" WHERE "liberal_ticket"='edward r. dudley';

Question: When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket?
SQL: SELECT "democratic_ticket" FROM "1962_state_election_results" WHERE "socialist_labor_ticket"='john emanuel';

Question: What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket?
SQL: SELECT "office" FROM "1962_state_election_results" WHERE "socialist_workers_ticket"='sylvia weinstein';

Question: Who ran under the Socialist Labor ticket when Robert M. Morgenthau ran for the Democratic ticket?
SQL: SELECT "socialist_labor_ticket" FROM "1962_state_election_results" WHERE "democratic_ticket"='robert m. morgenthau';

Question: When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?
SQL: SELECT "socialist_workers_ticket" FROM "1962_state_election_results" WHERE "republican_ticket"='john p. lomenzo';