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