Table: us_house_1940_elections_2
Columns: district
incumbent
party
first_elected
result
candidates

Question: what's the first elected with incumbent being joe starnes
SQL: SELECT "first_elected" FROM us_house_1940_elections_2 WHERE "incumbent" = 'Joe Starnes'

Question: what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
SQL: SELECT "first_elected" FROM us_house_1940_elections_2 WHERE "candidates" = 'Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%'

Question:  how many party with dbeingtrict being alabama 6
SQL: SELECT COUNT("party") FROM us_house_1940_elections_2 WHERE "district" = 'Alabama 6'

Question: what are all the district with incumbent being sam hobbs
SQL: SELECT "district" FROM us_house_1940_elections_2 WHERE "incumbent" = 'Sam Hobbs'

Question: what are all the result with district being alabama 1
SQL: SELECT "result" FROM us_house_1940_elections_2 WHERE "district" = 'Alabama 1'

Question: what is the maximum first elected with district being alabama 5
SQL: SELECT MAX("first_elected") FROM us_house_1940_elections_2 WHERE "district" = 'Alabama 5'