CREATE TABLE "1887_state_election_results" (
  "ticket_office" text,
  "secretary_of_state" text,
  "comptroller" text,
  "attorney_general" text,
  "treasurer" text,
  "state_engineer" text
);

Question: Name the ticket/office for orville preston
SQL: SELECT "ticket_office" FROM "1887_state_election_results" WHERE "secretary_of_state"='Orville Preston';

Question: Name the comptroller for republican
SQL: SELECT "comptroller" FROM "1887_state_election_results" WHERE "ticket_office"='Republican';

Question: Name the comptroller for office of prohibition
SQL: SELECT "comptroller" FROM "1887_state_election_results" WHERE "ticket_office"='Prohibition';