CREATE TABLE "1876_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "prohibition_ticket" text,
  "greenback_ticket" text
);

Question: Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?
SQL: SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='abraham j. cuddeback';

Question: Which office was Richard M. Griffin vying for on the Greenback ticket?
SQL: SELECT "office" FROM "1876_state_election_results" WHERE "greenback_ticket"='richard m. griffin';

Question: Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket?
SQL: SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='thomas armstrong';

Question: Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
SQL: SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='thomas armstrong';

Question: Who was on the Republican ticket for the office of Inspector of state prisons?
SQL: SELECT "republican_ticket" FROM "1876_state_election_results" WHERE "office"='inspector of state prisons';

Question: What office did Henry Hagner run for on the prohibition ticket?
SQL: SELECT "office" FROM "1876_state_election_results" WHERE "prohibition_ticket"='henry hagner';