CREATE TABLE table_name_40 (result VARCHAR(255), first_elected VARCHAR(255), incumbent VARCHAR(255))
What was the result for james o'h. patterson when first elected in 1904?
    
SQL: SELECT result FROM table_name_40 WHERE first_elected = "1904" AND incumbent = "james o'h. patterson"