Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
South Carolina 2
William Lowndes
Democratic-Republican
1810
Re-elected
William Lowndes (DR) 100%
3
South Carolina 4
John J. Chappell
Democratic-Republican
1812
Re-elected
John J. Chappell (DR)
4
South Carolina 5
David R. Evans
Democratic-Republican
1812
Retired Democratic-Republican hold
William Woodward (DR)
5
South Carolina 6
John C. Calhoun
Democratic-Republican
1810
Re-elected
John C. Calhoun (DR) Benjamin C. Yancey (DR)
6
South Carolina 7
Elias Earle
Democratic-Republican
1804 1810
Lost re-election Democratic-Republican hold
John Taylor (DR) 75.4% Elias Earle (DR) 24.1%
7
South Carolina 8
Samuel Farrow
Democratic-Republican
1812
Retired? Democratic-Republican hold
Thomas Moore (DR) Bowen (F) Samuel Farrow (DR)

Questions and formulas:
Question: Which party experienced a result of lost re-election democratic-republican hold?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="Lost re-election Democratic-Republican hold"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,E2:E7="Lost re-election Democratic-Republican hold"),3))
Level: medium
Question: How many districts have John C. Calhoun as the incumbent?
Formula: ROWS(UNIQUE(FILTER(A1, B1="John C. Calhoun")))
Formula2: ROWS(UNIQUE(FILTER(A2:A7, B2:B7="John C. Calhoun")))
Level: medium