Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Pennsylvania 1
Joel B. Sutherland
Jacksonian
1826
Re-elected
Joel B. Sutherland (J) 61.7% James Gowen (?) 38.3%
3
Pennsylvania 5
Joel K. Mann
Jacksonian
1830
Retired Jacksonian hold
Jacob Fry, Jr. (J) 55.3% James Royer (?) 44.7%
4
Pennsylvania 6
Robert Ramsey
Jacksonian
1832
Retired Anti-Jacksonian gain
Mathias Morris (AJ) 52.4% Henry Chapman (J) 47.6%
5
Pennsylvania 10
William Clark
Anti-Masonic
1832
Re-elected
William Clark (AM) 54.0% John C. Bucher (J) 46.0%
6
Pennsylvania 12
George Chambers
Anti-Masonic
1832
Re-elected
George Chambers (AM) 59.8% Ludwig Heck (J) 40.2%
7
Pennsylvania 13
Jesse Miller
Jacksonian
1832
Re-elected
Jesse Miller (J) 51.4% Thomas Whiteside (AM) 48.6%
8
Pennsylvania 17
John Laporte
Jacksonian
1832
Re-elected
John Laporte (J) 56.8% Horrace Williston 43.2%
9
Pennsylvania 18
George Burd
Anti-Jacksonian
1830
Retired Jacksonian gain
Job Mann (J) 54.6% Charles Ogle (AM) 45.4%
10
Pennsylvania 22
Harmar Denny
Anti-Masonic
1829 ( special )
Re-elected
Harmar Denny (AM) 53.5% John M. Snowden (J) 46.5%
11
Pennsylvania 24
John Banks
Anti-Masonic
1830
Re-elected
John Banks (AM) 52.2% Samuel Power (J) 47.8%

Questions and formulas:
Question: Who were the candidates in districk Pennsylvania 12?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Pennsylvania 12"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F11,A2:A11="Pennsylvania 12"),6))
Level: medium
Question: What is the result for district pennsylvania 6?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Pennsylvania 6"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F11,A2:A11="Pennsylvania 6"),5))
Level: medium
Question: Who was the incumbent when the candidates were John banks (am) 52.2% samuel power (j) 47.8%?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="John Banks (AM) 52.2% Samuel Power (J) 47.8%"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F11,F2:F11="John Banks (AM) 52.2% Samuel Power (J) 47.8%"),2))
Level: medium
Question: How many times was the result was re-elected and the party was anti-masonic in the district Pennsylvania 24?
Formula: SUM(FILTER(D1, (E1="Re-elected")*(C1="Anti-Masonic")*(A1="Pennsylvania 24")))
Formula2: SUM(FILTER(D2:D11, (E2:E11="Re-elected")*(C2:C11="Anti-Masonic")*(A2:A11="Pennsylvania 24")))
Level: easy
Question: Who were all the candidates when the results were re-elected, first elected was 1832 and the party was jacksonian?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(E1="Re-elected")*(D1=1832)*(C1="Jacksonian")),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F11,(E2:E11="Re-elected")*(D2:D11=1832)*(C2:C11="Jacksonian")),6))
Level: medium