CREATE TABLE table_1342233_17 (first_elected VARCHAR, incumbent VARCHAR)

What year was incumbent joe b. bates first elected?
SELECT first_elected FROM table_1342233_17 WHERE incumbent = "Joe B. Bates"
SELECT "first_elected" FROM "table_1342233_17" WHERE "Joe B. Bates" = "incumbent"