Table: us_house_1860_elections
Columns: district
incumbent
party
first_elected
result

Question: Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?
SQL: SELECT "district" FROM us_house_1860_elections WHERE "first_elected" = 1858 AND "result" = 'retired republican gain' AND "incumbent" = 'william millward'

Question: Which Result has a District of pennsylvania 13?
SQL: SELECT "result" FROM us_house_1860_elections WHERE "district" = 'pennsylvania 13'

Question: Which First elected is the lowest one that has an Incumbent of william stewart?
SQL: SELECT MIN("first_elected") FROM us_house_1860_elections WHERE "incumbent" = 'william stewart'