Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Results
2
Oklahoma 1
John Sullivan
Republican
2002
Re-elected
3
Oklahoma 2
Dan Boren
Democratic
2004
Re-elected
4
Oklahoma 3
Frank Lucas
Republican
1994
Re-elected
5
Oklahoma 4
Tom Cole
Republican
2002
Re-elected
6
Oklahoma 5
Ernest Istook
Republican
1992
Retired to run for Governor Republican hold

Questions and formulas:
Question: What is the party for the representative who was first elected before 2002 and the results were re-elected?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="re-elected")*(D1<2002)),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(E2:E6="re-elected")*(D2:D6<2002)),3))
Level: medium
Question: Incumbent John Sullivan has what as biggest first elected?
Formula: MAXIFS(D1,B1,"john sullivan")
Formula2: MAXIFS(D2:D6,B2:B6,"john sullivan")
Level: easy