Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
New York 3
Frank J. Becker
Republican
1952
Re-elected
Frank J. Becker (R) 58.3% John Cogley (D) 41.7%
3
New York 8
Louis B. Heller
Democratic
1949
Resigned when appointed judge Democratic hold
Victor Anfuso (D) 77.7% Eugene J. Renne (R) 22.3%
4
New York 26
Ralph A. Gamble
Republican
1937
Re-elected
Ralph A. Gamble (R) 64.0% Julia L. Crews (D) 36.0%
5
New York 27
Ralph W. Gwinn
Republican
1944
Re-elected
Ralph W. Gwinn (R) 57.2% John R. Harold (D) 42.8%
6
New York 30
Leo W. O'Brien
Democratic
1952
Re-elected
Leo W. O'Brien (D) 61.2% James W. Smith (R) 38.8%

Questions and formulas:
Question: What party did Frank J. Becker represent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Frank J. Becker"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Frank J. Becker"),3))
Level: medium
Question: What number of party had a candidate  resigned when appointed judge democratic hold?
Formula: ROWS(UNIQUE(FILTER(C1, E1="Resigned when appointed judge Democratic hold")))
Formula2: ROWS(UNIQUE(FILTER(C2:C6, E2:E6="Resigned when appointed judge Democratic hold")))
Level: medium
Question: What district did incumbent Ralph A. Gamble represent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Ralph A. Gamble"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Ralph A. Gamble"),1))
Level: medium