Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Pennsylvania 2
William T. Granahan
Democratic
1948
Re-elected
William T. Granahan (D) 57.0% Max Slepin (R) 43.0%
3
Pennsylvania 3
Hardie Scott
Republican
1946
Re-elected
Hardie Scott (R) 50.3% Maurice S. Osser (D) 49.7%
4
Pennsylvania 9
Paul B. Dague
Republican
1946
Re-elected
Paul B. Dague (R) 67.2% Philip Ragan (D) 32.8%
5
Pennsylvania 12
Ivor D. Fenton
Republican
1938
Re-elected
Ivor D. Fenton (R) 56.8% James H. Gildea (D) 43.2%
6
Pennsylvania 19
Leon H. Gavin
Republican
1942
Re-elected
Leon H. Gavin (R) 62.8% Fred C. Barr (D) 37.2%
7
Pennsylvania 21
James F. Lind
Democratic
1948
Re-elected
James F. Lind (D) 52.2% Francis Worley (R) 47.8%

Questions and formulas:
Question: What was the candidates for hardie scott
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Hardie Scott"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,B2:B7="Hardie Scott"),6))
Level: medium
Question: What is the number of candidates for pennsylvania 3
Formula: ROWS(UNIQUE(FILTER(F1, A1="Pennsylvania 3")))
Formula2: ROWS(UNIQUE(FILTER(F2:F7, A2:A7="Pennsylvania 3")))
Level: medium
Question: What is the number of candidates for pennsylvania 21
Formula: ROWS(UNIQUE(FILTER(F1, A1="Pennsylvania 21")))
Formula2: ROWS(UNIQUE(FILTER(F2:F7, A2:A7="Pennsylvania 21")))
Level: medium
Question: What is the party for first elected 1948 for william t. granahan
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(D1=1948)*(B1="William T. Granahan")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,(D2:D7=1948)*(B2:B7="William T. Granahan")),3))
Level: medium