Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Maryland 2
Joseph Kent
Democratic-Republican
1818
Re-elected
Joseph Kent (DR) 96.9% John C. Herbert (F) 2.2%
3
Maryland 3
Henry R. Warfield
Federalist
1818
Re-elected
Henry R. Warfield (F) 99.3%
4
Maryland 5 Plural district with 2 seats
Samuel Smith
Democratic-Republican
1792 1816
Re-elected
Peter Little (DR) 50.0% Samuel Smith 50.0%
5
Maryland 5 Plural district with 2 seats
Peter Little
Democratic-Republican
1810 1816
Re-elected
Peter Little (DR) 50.0% Samuel Smith 50.0%
6
Maryland 6
Stevenson Archer
Democratic-Republican
1811 (special) 1818
Retired Democratic-Republican hold
Jeremiah Cosden (DR) 49.9% Philip Reed (DR) 49.9%

Questions and formulas:
Question: What is Samuel Smith's party?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Samuel Smith"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Samuel Smith"),3))
Level: medium
Question: what is Peter Little's party?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Peter Little"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Peter Little"),3))
Level: medium
Question: What was the result of Samuel Smith's race?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Samuel Smith"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Samuel Smith"),5))
Level: medium