Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Massachusetts 1
Richard Neal Redistricted from the 2nd district
Democratic
1988
Re-elected
Richard Neal (D)
3
Massachusetts 2
John Olver Redistricted from the 1st district
Democratic
1991 (Special)
Retired Democratic loss
Jim McGovern (D)
4
Massachusetts 2
Jim McGovern Redistricted from the 3rd district
Democratic
1996
Re-elected
Jim McGovern (D)
5
Massachusetts 3
Niki Tsongas Redistricted from the 5th district
Democratic
2007 (Special)
Re-elected
Niki Tsongas (D) 65.9% Jon Golnik (R) 34.1%
6
Massachusetts 4
Barney Frank
Democratic
1980
Retired Democratic hold
Joseph Kennedy III (D) 61.1% Sean Bielat (R) 36.0%
7
Massachusetts 5
Ed Markey Redistricted from the 7th district
Democratic
1976
Re-elected
Ed Markey (D) 75.5% Tom Tierney (R) 24.5%
8
Massachusetts 7
Mike Capuano Redistricted from the 8th district
Democratic
1998
Re-elected
Mike Capuano (D) 83.6% Karla Romero (I) 16.4%

Questions and formulas:
Question: Name the party for 1998 first elected
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=1998),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,D2:D8=1998),3))
Level: medium
Question: Name the result for barney frank
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Barney Frank"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,B2:B8="Barney Frank"),5))
Level: medium
Question: Name the candidates for first elected being 1976
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=1976),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,D2:D8=1976),6))
Level: medium
Question: Name the total number of districts for first elected being 1998
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=1998),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,D2:D8=1998),1))
Level: medium
Question: Name the result for 1998
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=1998),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,D2:D8=1998),5))
Level: medium
Question: Name the candidates for 1998
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=1998),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,D2:D8=1998),6))
Level: medium