Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Results
2
South Carolina 1
Henry Brown, Jr.
Republican
2000
Re-elected
3
South Carolina 2
Joe Wilson
Republican
2001
Re-elected
4
South Carolina 3
J. Gresham Barrett
Republican
2002
Re-elected
5
South Carolina 4
Bob Inglis
Republican
2004
Re-elected
6
South Carolina 5
John Spratt
Democratic
1982
Re-elected
7
South Carolina 6
Jim Clyburn
Democratic
1992
Re-elected

Questions and formulas:
Question: What is the average first elected for the district South Carolina 2?
Formula: AVERAGEIFS(D1,A1,"south carolina 2")
Formula2: AVERAGEIFS(D2:D7,A2:A7,"south carolina 2")
Level: easy
Question: Who was the first elected for the republican party?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="republican"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,C2:C7="republican"),4))
Level: medium
Question: What party has the South Carolina 2 district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="south carolina 2"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,A2:A7="south carolina 2"),3))
Level: medium