Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Pennsylvania 5
Daniel Montgomery
Democratic-Republican
1806
Retired Democratic-Republican hold
George Smith (DR) 82.3% John Bull (F) 17.3%
3
Pennsylvania 6
James Kelly
Federalist
1804
Lost re-election Democratic-Republican gain
William Crawford (DR) 52.4% James Kelly (F) 47.6%
4
Pennsylvania 7
John Rea
Democratic-Republican
1802
Re-elected
John Rea (DR) 61.5% Andrew Dunlap (F) 38.5%
5
Pennsylvania 9
John Smilie
Democratic-Republican
1792 1798
Re-elected
John Smilie (DR) 67.3% Thomas Meason (F) 32.7%
6
Pennsylvania 10
William Hoge
Democratic-Republican
1806
Retired Democratic-Republican hold
Aaron Lyle (DR) 76.5% John Hamilton (F) 23.5%

Questions and formulas:
Question: what was the section where the winner is william hoge
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="William Hoge"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="William Hoge"),1))
Level: medium
Question: who was running where the winner is daniel montgomery
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Daniel Montgomery"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Daniel Montgomery"),6))
Level: medium
Question: who was running in the section pennsylvania 5
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Pennsylvania 5"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="Pennsylvania 5"),6))
Level: medium