Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Pennsylvania 1
Thomas Foglietta
Democratic
1980
Re-elected
Thomas Foglietta (D) 87.50% James Cella (R) 12.49%
3
Pennsylvania 2
Chaka Fattah
Democratic
1994
Re-elected
Chaka Fattah (D) 87.99% Larry Murphy (R) 12.01%
4
Pennsylvania 4
Ron Klink
Democratic
1992
Re-elected
Ron Klink (D) 64.20% Paul Adametz (R) 35.76%
5
Pennsylvania 5
Bill Clinger
Republican
1978
Retired Republican hold
John E. Peterson (R) 60.26% Ruth Rudy (D) 39.70%
6
Pennsylvania 9
Bud Shuster
Republican
1972
Re-elected
Bud Shuster (R) 73.70% Monte Kemmler (D) 26.27%
7
Pennsylvania 11
Paul Kanjorski
Democratic
1984
Re-elected
Paul Kanjorski (D) 68.00% Stephen Urban (R) 31.99%
8
Pennsylvania 12
John Murtha
Democratic
1974
Re-elected
John Murtha (D) 69.99% Bill Choby (R) 30.00%
9
Pennsylvania 17
George Gekas
Republican
1982
Re-elected
George Gekas (R) 72.23% Paul Kettl (D) 27.76%
10
Pennsylvania 20
Frank Mascara
Democratic
1994
Re-elected
Frank Mascara (D) 53.89% Mike McCormick (R) 46.10%

Questions and formulas:
Question: What is the earliest year where the result of the election was a retired republican hold?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="Retired Republican hold"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F10,E2:E10="Retired Republican hold"),4))
Level: medium
Question: What party is thomas foglietta from?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Thomas Foglietta"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F10,B2:B10="Thomas Foglietta"),3))
Level: medium