Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Pennsylvania 6
Gus Yatron
Democratic
1968
Re-elected
Gus Yatron (D) 67.1% George Hulshart (R) 32.9%
3
Pennsylvania 9
Bud Shuster
Republican
1972
Re-elected
Bud Shuster (R) Unopposed
4
Pennsylvania 11
Ray Musto
Democratic
1980
Lost re-election Republican gain
James L. Nelligan (R) 51.9% Ray Musto (D) 48.1%
5
Pennsylvania 12
John Murtha
Democratic
1974
Re-elected
John Murtha (D) 59.4% Charles A. Getty (R) 40.6%
6
Pennsylvania 18
Doug Walgren
Democratic
1976
Re-elected
Doug Walgren (D) 68.5% Steven R. Snyder (R) 31.5%
7
Pennsylvania 21
Donald A. Bailey
Democratic
1978
Re-elected
Donald A. Bailey (D) 68.4% Dirk Matson (R) 31.6%

Questions and formulas:
Question: What candidate is a member of the Republican party?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,C1="Republican"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,C2:C7="Republican"),6))
Level: medium
Question: What district is Ray Musto the incumbent of?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Ray Musto"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,B2:B7="Ray Musto"),1))
Level: medium
Question: How many parties does the incumbent Donald A. Bailey a member of?
Formula: ROWS(UNIQUE(FILTER(C1, B1="Donald A. Bailey")))
Formula2: ROWS(UNIQUE(FILTER(C2:C7, B2:B7="Donald A. Bailey")))
Level: medium
Question: What was the outcome of the election in Pennsylvania 6 district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Pennsylvania 6"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,A2:A7="Pennsylvania 6"),5))
Level: medium