Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Pennsylvania 4
Hugh Glasgow
Democratic-Republican
1812
Retired Democratic-Republican hold
Jacob Spangler (DR) 67.1% Jacob Hay (F) 32.9%
3
Pennsylvania 6 Plural district with 2 seats
Samuel D. Ingham
Democratic-Republican
1812
Re-elected
John Ross (DR) 50.8% Samuel D. Ingham (DR) 49.2%
4
Pennsylvania 6 Plural district with 2 seats
John Ross
Democratic-Republican
1814
Re-elected
John Ross (DR) 50.8% Samuel D. Ingham (DR) 49.2%
5
Pennsylvania 8
William Piper
Democratic-Republican
1810
Retired Democratic-Republican hold
Alexander Ogle (DR) 99.7%
6
Pennsylvania 12
Aaron Lyle
Democratic-Republican
1808
Retired Democratic-Republican hold
Thomas Patterson (DR) 87.2% John Hughes (F) 12.8%
7
Pennsylvania 14
John Woods
Federalist
1814
Retired Democratic-Republican gain
Henry Baldwin (DR) 61.6% Walter Lowrie (DR) 38.4%

Questions and formulas:
Question: Name the candidates for pennsylvania 14
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Pennsylvania 14"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,A2:A7="Pennsylvania 14"),6))
Level: medium
Question: Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="Jacob Spangler (DR) 67.1% Jacob Hay (F) 32.9%"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,F2:F7="Jacob Spangler (DR) 67.1% Jacob Hay (F) 32.9%"),2))
Level: medium
Question: Name the most first elected
Formula: MAX(D1)
Formula2: MAX(D2:D7)
Level: easy
Question: Name the number of candidates for  samuel d. ingham
Formula: ROWS(UNIQUE(FILTER(F1, B1="Samuel D. Ingham")))
Formula2: ROWS(UNIQUE(FILTER(F2:F7, B2:B7="Samuel D. Ingham")))
Level: medium