Instruct: Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?
Output: SELECT District FROM table WHERE First elected = 1858 AND Result = retired republican gain AND Incumbent = william millward