Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Results
2
Indiana 1
Pete Visclosky
Democratic
1984
Re-elected
3
Indiana 2
Chris Chocola
Republican
2002
Lost re-election Democratic gain
4
Indiana 3
Mark Souder
Republican
1994
Re-elected
5
Indiana 4
Steve Buyer
Republican
1992
Re-elected
6
Indiana 5
Dan Burton
Republican
1982
Re-elected
7
Indiana 6
Mike Pence
Republican
2000
Re-elected
8
Indiana 7
Julia Carson
Democratic
1996
Re-elected
9
Indiana 8
John Hostettler
Republican
1994
Lost re-election Democratic gain
10
Indiana 9
Mike Sodrel
Republican
2004
Lost re-election Democratic gain

Questions and formulas:
Question: What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?
Formula: MAX(FILTER(D1, (E1="lost re-election democratic gain")*(B1="john hostettler")))
Formula2: MAX(FILTER(D2:D10, (E2:E10="lost re-election democratic gain")*(B2:B10="john hostettler")))
Level: easy