CREATE TABLE "1924_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "workers_ticket" text
);

Question: What is the name on the Socialist ticket when the Democratic ticket is george k. shuler?
SQL: SELECT "socialist_ticket" FROM "1924_state_election_results" WHERE "democratic_ticket"='george k. shuler';

Question: What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?
SQL: SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='franklin p. brill';

Question: What is the name on the Democratic ticket when the Workers ticket is james p. cannon?
SQL: SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='james p. cannon';

Question: What is the Office when the Republican ticket shows seymour lowman?
SQL: SELECT "office" FROM "1924_state_election_results" WHERE "republican_ticket"='seymour lowman';

Question: What is the name on the Republican ticket when the Socialist ticket was louis waldman?
SQL: SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "socialist_ticket"='louis waldman';

Question: What is the name on the Republican ticket when the Workers ticket is edward lindgren?
SQL: SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='edward lindgren';