Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Massachusetts 1
Silvio Conte
Republican
1958
Re-elected
Silvio Conte (R) Unopposed
3
Massachusetts 2
Edward Boland
Democratic
1952
Re-elected
Edward Boland (D) 72.6% Thomas P. Swank (R) 27.4%
4
Massachusetts 3
Joseph D. Early
Democratic
1974
Re-elected
Joseph D. Early (D) Unopposed
5
Massachusetts 4
Barney Frank
Democratic
1980
Re-elected
Barney Frank (D) 59.5% Margaret Heckler (R) 40.5%
6
Massachusetts 7
Ed Markey
Democratic
1976
Re-elected
Ed Markey (D) 77.8% David M. Basile (R) 22.2%

Questions and formulas:
Question: what's the incumbent with district being massachusetts 2
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Massachusetts 2"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="Massachusetts 2"),2))
Level: medium
Question: what's the party with candidates being silvio conte (r) unopposed
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Silvio Conte (R) Unopposed"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,F2:F6="Silvio Conte (R) Unopposed"),3))
Level: medium
Question: what's the first elected with incumbent being joseph d. early
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Joseph D. Early"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Joseph D. Early"),4))
Level: medium
Question: who is the the incumbent with dbeingtrict being massachusetts 2
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Massachusetts 2"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="Massachusetts 2"),2))
Level: medium
Question: what's the party with dbeingtrict being massachusetts 3
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Massachusetts 3"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="Massachusetts 3"),3))
Level: medium