Table: election_1876
Columns: office
democratic_ticket
republican_ticket
prohibition_ticket
greenback_ticket

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

Question: Which office was Richard M. Griffin vying for on the Greenback ticket?
SQL: SELECT "office" FROM election_1876 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 election_1876 WHERE "greenback_ticket" = 'thomas armstrong'

Question: Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
SQL: SELECT "prohibition_ticket" FROM election_1876 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 election_1876 WHERE "office" = 'inspector of state prisons'

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