Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Alabama 1
Frank W. Boykin
Democratic
1935
Re-elected
Frank W. Boykin (D) Unopposed
3
Alabama 2
George M. Grant
Democratic
1938
Re-elected
George M. Grant (D) Unopposed
4
Alabama 4
Sam Hobbs
Democratic
1934
Re-elected
Sam Hobbs (D) 87.9% Thomas G. McNaron (R) 12.1%
5
Alabama 5
Joe Starnes
Democratic
1934
Re-elected
Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%
6
Alabama 6
Pete Jarman
Democratic
1936
Re-elected
Pete Jarman (D) Unopposed
7
Alabama 8
John Sparkman
Democratic
1936
Re-elected
John Sparkman (D) Unopposed

Questions and formulas:
Question: what's the first elected with incumbent being joe starnes
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Joe Starnes"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,B2:B7="Joe Starnes"),4))
Level: medium
Question: what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,F2:F7="Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%"),4))
Level: medium
Question:  how many party with dbeingtrict being alabama 6
Formula: ROWS(UNIQUE(FILTER(C1, A1="Alabama 6")))
Formula2: ROWS(UNIQUE(FILTER(C2:C7, A2:A7="Alabama 6")))
Level: medium
Question: what are all the district with incumbent being sam hobbs
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Sam Hobbs"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,B2:B7="Sam Hobbs"),1))
Level: medium
Question: what are all the result with district being alabama 1
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Alabama 1"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,A2:A7="Alabama 1"),5))
Level: medium
Question: what is the maximum first elected with district being alabama 5
Formula: MAXIFS(D1,A1,"Alabama 5")
Formula2: MAXIFS(D2:D7,A2:A7,"Alabama 5")
Level: easy