Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Virginia 2
James Stephenson
Federalist
1809
Retired Federalist hold
John Baker (F) 56.5% Daniel Morgan (DR) 43.5%
3
Virginia 3
John Smith
Democratic-Republican
1801
Re-elected
John Smith (DR) 100%
4
Virginia 6
Daniel Sheffey
Federalist
1809
Re-elected
Daniel Sheffey (F) 100%
5
Virginia 7
Joseph Lewis, Jr.
Federalist
1803
Re-elected
Joseph Lewis, Jr. (F) 80.0% John Love (DR) 19.9%
6
Virginia 10
John Dawson
Democratic-Republican
1797
Re-elected
John Dawson (DR) 100%
7
Virginia 11
John Roane
Democratic-Republican
1809
Re-elected
John Roane (DR)
8
Virginia 12
Burwell Bassett
Democratic-Republican
1805
Re-elected
Burwell Bassett (DR) 59.5% John Eyre (F) 40.5%
9
Virginia 13
William A. Burwell
Democratic-Republican
1806 (special)
Re-elected
William A. Burwell (DR) 100%
10
Virginia 14
Matthew Clay
Democratic-Republican
1797
Re-elected
Matthew Clay (DR) John Kerr (DR)
11
Virginia 15
John Randolph
Democratic-Republican
1799
Re-elected
John Randolph (DR) 67.8% John W. Eppes (DR) 32.2%
12
Virginia 17
Thomas Gholson, Jr.
Democratic-Republican
1808 (special)
Re-elected
Thomas Gholson, Jr. (DR)
13
Virginia 18
Peterson Goodwyn
Democratic-Republican
1803
Re-elected
Peterson Goodwyn (DR) 100%
14
Virginia 19
Edwin Gray
Democratic-Republican
1799
Re-elected
Edwin Gray (DR) 62.2% Samuel Butler (DR) 37.8%
15
Virginia 21
David S. Garland
Democratic-Republican
1809 (special)
Retired Democratic-Republican hold
Hugh Nelson (DR) 100%

Questions and formulas:
Question: Who was the incumbent in Virginia 3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Virginia 3"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,A2:A15="Virginia 3"),2))
Level: medium
Question: What incumbent was a federalist that was first elected in 1803?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(C1="Federalist")*(D1=1803)),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,(C2:C15="Federalist")*(D2:D15=1803)),2))
Level: medium
Question: How many parties were first elected in 1805?
Formula: ROWS(UNIQUE(FILTER(C1, D1=1805)))
Formula2: ROWS(UNIQUE(FILTER(C2:C15, D2:D15=1805)))
Level: medium
Question: What district was John Dawson from?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="John Dawson"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,B2:B15="John Dawson"),1))
Level: medium