Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Results
Candidates
2
South Carolina 1
Mark Sanford
Republican
1994
Retired Republican hold
Henry Brown (R) 60% Andy Brack (D) 36%
3
South Carolina 2
Floyd Spence
Republican
1970
Re-elected
Floyd Spence (R) 58% Jane Frederick (D) 41%
4
South Carolina 3
Lindsey Graham
Republican
1994
Re-elected
Lindsey Graham (R) 68% George Brightharp (D) 31%
5
South Carolina 4
Jim DeMint
Republican
1998
Re-elected
Jim DeMint (R) 80%
6
South Carolina 5
John Spratt
Democratic
1982
Re-elected
John Spratt (D) 59% Carl Gullick (R) 40%

Questions and formulas:
Question: what is the earliest first elected with the results re-elected in the district south carolina 3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(E1="Re-elected")*(A1="South Carolina 3")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,(E2:E6="Re-elected")*(A2:A6="South Carolina 3")),4))
Level: medium
Question: what is the party with the incumbent jim demint?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Jim DeMint"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Jim DeMint"),3))
Level: medium
Question: what is the party for the district south carolina 4?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="South Carolina 4"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="South Carolina 4"),3))
Level: medium
Question: what is the party when candidates is jim demint (r) 80%?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Jim DeMint (R) 80%"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,F2:F6="Jim DeMint (R) 80%"),3))
Level: medium
Question: what is the party when candidates is jim demint (r) 80%?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Jim DeMint (R) 80%"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,F2:F6="Jim DeMint (R) 80%"),3))
Level: medium
Question: who are the candidates when the incumbent is lindsey graham?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Lindsey Graham"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Lindsey Graham"),6))
Level: medium