Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
South Carolina 1
William Elliott
Democratic
1886 1896
Re-elected
3
South Carolina 2
W. Jasper Talbert
Democratic
1892
Re-elected
4
South Carolina 3
Asbury Latimer
Democratic
1892
Re-elected
5
South Carolina 4
Stanyarne Wilson
Democratic
1894
Lost primary Democratic hold
6
South Carolina 5
David E. Finley
Democratic
1898
Re-elected
7
South Carolina 6
James Norton
Democratic
1897 (special)
Lost primary Democratic hold
8
South Carolina 7
J. William Stokes
Democratic
1894
Re-elected

Questions and formulas:
Question: When David E. Finley was the incumbent what was the result?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="david e. finley"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,B2:B8="david e. finley"),5))
Level: medium
Question: When someone was first elected in 1898 what was the result?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1898),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8=1898),5))
Level: medium
Question: What party has an incumbent of Stanyarne Wilson?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="stanyarne wilson"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,B2:B8="stanyarne wilson"),3))
Level: medium
Question: When the incumbent was William Elliott, what was the result?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="william elliott"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,B2:B8="william elliott"),5))
Level: medium