Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Results
2
Connecticut 1
John Larson
Democratic
1998
Re-elected
3
Connecticut 2
Rob Simmons
Republican
2000
Lost re-election Democratic gain
4
Connecticut 3
Rosa DeLauro
Democratic
1990
Re-elected
5
Connecticut 4
Chris Shays
Republican
1987
Re-elected
6
Connecticut 5
Nancy Johnson
Republican
1982
Lost re-election Democratic gain

Questions and formulas:
Question: What district re-elected a Republican?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="republican")*(E1="re-elected")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(C2:C6="republican")*(E2:E6="re-elected")),1))
Level: medium
Question: Which incumbent was first elected in 1987?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1987),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,D2:D6=1987),2))
Level: medium