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 table WHERE First elected = 1858 AND Result = retired republican gain AND Incumbent = william millward