Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Status
Opponent
2
Massachusetts1
John Olver
Democratic
1991
Re-elected
John Olver (D) unopposed
3
Massachusetts4
Barney Frank
Democratic
1980
Re-elected
Barney Frank (D) unopposed
4
Massachusetts5
Marty Meehan
Democratic
1992
Re-elected
Marty Meehan (D) 69.8% David E. Coleman (R) 30.1%
5
Massachusetts7
Ed Markey
Democratic
1976
Re-elected
Ed Markey (D) 64.4% Brad Bailey (R) 35.5%
6
Massachusetts8
Joe Kennedy
Democratic
1986
Re-elected
Joe Kennedy (D) unopposed

Questions and formulas:
Question: Who opposed Marty Meehan in each election?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Marty Meehan"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Marty Meehan"),6))
Level: medium
Question: Who are the opponents in Massachusetts5 district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Massachusetts5"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="Massachusetts5"),6))
Level: medium
Question: What parties are represented in Massachusetts4 district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Massachusetts4"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="Massachusetts4"),3))
Level: medium
Question: Who is the incumbent in district Massachusetts7?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Massachusetts7"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="Massachusetts7"),2))
Level: medium