Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
New York 1
Samuel Riker
Democratic-Republican
1806
Retired Democratic-Republican hold
Ebenezer Sage (DR) 93.5% David Gardiner (F) 6.5%
3
New York 5
Barent Gardenier
Federalist
1806
Retired Democratic-Republican gain
Thomas B. Cooke (DR) 52.1% Gerrit Abeel (F) 47.9%
4
New York 8
John Thompson
Democratic-Republican
1806
Retired Democratic-Republican hold
Benjamin Pond (DR) 57.6% James McCrea (F) 42.4%
5
New York 10
John Nicholson
Democratic-Republican
1808
Retired Democratic-Republican hold
Silas Stow (DR) 51.3% Simeon Ford (F) 48.7%
6
New York 11
Thomas R. Gold
Federalist
1808
Re-elected
Thomas R. Gold (F) 52.6% Thomas Skinner (DR) 47.4%
7
New York 12
Erastus Root
Democratic-Republican
1808
Retired Democratic-Republican hold
Arunah Metcalf (DR) 56.2% John M. Bowers (F) 43.8%
8
New York 13
Uri Tracy
Democratic-Republican
1808
Re-elected
Uri Tracy (DR) 60.2% Nathaniel Waldron (F) 39.8%

Questions and formulas:
Question: Who were the running candidates when Samuel Riker was the incumbent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Samuel Riker"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,B2:B8="Samuel Riker"),6))
Level: medium