Question: What district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain?
SQL: SELECT District FROM table WHERE First elected = 1858 AND Result = defeated democratic gain AND Incumbent = james humphrey