Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Kentucky 1
David Trimble
Adams-Clay Republican
1816
Re-elected
David Trimble (A)
3
Kentucky 3
Henry Clay
Adams-Clay Republican
1810 1822
Re-elected
Henry Clay (A) 100%
4
Kentucky 4
Robert P. Letcher
Adams-Clay Republican
1822
Re-elected
Robert P. Letcher (A) 60.1% John Speed Smith 39.9%
5
Kentucky 6
David White
Adams-Clay Republican
1822
Retired Jacksonian gain
Joseph Lecompte (J) John Logan
6
Kentucky 7
Thomas P. Moore
Jacksonian Republican
1822
Re-elected
Thomas P. Moore (J) Samuel Woodson

Questions and formulas:
Question: What party did robert p. letcher represent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Robert P. Letcher"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Robert P. Letcher"),3))
Level: medium
Question: What district(s) did henry clay represent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Henry Clay"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Henry Clay"),1))
Level: medium
Question: Who were the candidates for election that had a result of a retired jacksonian gain?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="Retired Jacksonian gain"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,E2:E6="Retired Jacksonian gain"),6))
Level: medium