Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Results
2
North Carolina 1
G. K. Butterfield
Democratic
2004
Re-elected
3
North Carolina 2
Bob Etheridge
Democratic
1996
Re-elected
4
North Carolina 3
Walter Jones Jr.
Republican
1994
Re-elected
5
North Carolina 4
David Price
Democratic
1996
Re-elected
6
North Carolina 5
Virginia Foxx
Republican
2004
Re-elected
7
North Carolina 6
Howard Coble
Republican
1984
Re-elected
8
North Carolina 7
Mike McIntyre
Democratic
1996
Re-elected
9
North Carolina 8
Robin Hayes
Republican
1998
Re-elected
10
North Carolina 9
Sue Myrick
Republican
1994
Re-elected
11
North Carolina 10
Patrick McHenry
Republican
2004
Re-elected
12
North Carolina 11
Charles Taylor
Republican
1990
Lost re-election Democratic gain
13
North Carolina 12
Mel Watt
Democratic
1992
Re-elected
14
North Carolina 13
Brad Miller
Democratic
2002
Re-elected

Questions and formulas:
Question: In which district is the incumbent a republican first elected in 1998?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="republican")*(D1=1998)),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E14,(C2:C14="republican")*(D2:D14=1998)),1))
Level: medium
Question: What is the party affiliation of Virginia Foxx?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="virginia foxx"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E14,B2:B14="virginia foxx"),3))
Level: medium