Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
South Carolina 1
George Swinton Legaré
Democratic
1902
Re-elected
3
South Carolina 2
James O'H. Patterson
Democratic
1904
Lost primary Democratic hold
4
South Carolina 3
Wyatt Aiken
Democratic
1902
Re-elected
5
South Carolina 4
Joseph T. Johnson
Democratic
1900
Re-elected
6
South Carolina 5
David E. Finley
Democratic
1898
Re-elected
7
South Carolina 6
J. Edwin Ellerbe
Democratic
1904
Re-elected
8
South Carolina 7
Asbury F. Lever
Democratic
1901 (special)
Re-elected

Questions and formulas:
Question: Which district has joseph t. johnson as an incumbent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="joseph t. johnson"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,B2:B8="joseph t. johnson"),1))
Level: medium
Question: What was the result for james o'h. patterson when first elected in 1904?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1=1904)*(B1="james o'h. patterson")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,(D2:D8=1904)*(B2:B8="james o'h. patterson")),5))
Level: medium
Question: Which party was re-elected in south carolina 5 district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="re-elected")*(A1="south carolina 5")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,(E2:E8="re-elected")*(A2:A8="south carolina 5")),3))
Level: medium
Question: Which party was joseph t. johnson in?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="joseph t. johnson"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,B2:B8="joseph t. johnson"),3))
Level: medium
Question: Which party was first elected in 1898?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1898),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8=1898),3))
Level: medium
Question: Which district won when first elected in 1900?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1900),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8=1900),1))
Level: medium