CREATE TABLE table_name_40 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)

What was the result for james o'h. patterson when first elected in 1904?
SELECT result FROM table_name_40 WHERE first_elected = "1904" AND incumbent = "james o'h. patterson"
SELECT "result" FROM "table_name_40" WHERE "1904" = "first_elected" AND "incumbent" = "james o'h. patterson"