Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Virginia 1
Thomas Wilson
Federalist
1811
Lost re-election Democratic-Republican gain
John G. Jackson (DR) 60.2% Thomas Wilson (F) 39.8%
3
Virginia 2
John Baker
Federalist
1811
Retired Federalist hold
Francis White (F)
4
Virginia 3
John Smith
Democratic-Republican
1801
Re-elected
John Smith (DR) 82.8% Robert Page (F) 17.2%
5
Virginia 7
None (District created)
None (District created)
None (District created)
New seat Federalist gain
Hugh Caperton (F) 53.8% Ballard Smith (DR) 46.2%
6
Virginia 10
Aylett Hawes Redistricted from the 9th district
Democratic-Republican
1811
Re-elected
Aylett Hawes (DR) Philip R. Thompson (DR)
7
Virginia 11
John Dawson Redistricted from the 10th district
Democratic-Republican
1797
Re-elected
John Dawson (DR) 97.7% Stapleton Crutchfield 1.2%
8
Virginia 12
John Roane Redistricted from the 11th district
Democratic-Republican
1809
Re-elected
John Roane (DR) 73.0% James Hunter (F) 26.8%
9
Virginia 16
John Randolph Redistricted from the 15th district
Democratic-Republican
1799
Lost re-election Democratic-Republican hold
John W. Eppes (DR) 54.3% John Randolph (DR) 45.7%
10
Virginia 20
Edwin Gray Redistricted from the 19th district
Democratic-Republican
1799
Lost re-election Democratic-Republican hold
James Johnson (DR) 67.3% Edwin Gray (DR) 32.7%
11
Virginia 22
Hugh Nelson Redistricted from the 21st district
Democratic-Republican
1811
Re-elected
Hugh Nelson (DR)

Questions and formulas:
Question: Name the distrct for thomas wilson
Formula: FILTER(A1,B1="Thomas Wilson")
Formula2: FILTER(A2:A11,B2:B11="Thomas Wilson")
Level: easy
Question: Name the party for  john randolph redistricted from the 15th district
Formula: FILTER(C1,B1="John Randolph Redistricted from the 15th district")
Formula2: FILTER(C2:C11,B2:B11="John Randolph Redistricted from the 15th district")
Level: easy
Question: Name the party for virginia 12
Formula: FILTER(C1,A1="Virginia 12")
Formula2: FILTER(C2:C11,A2:A11="Virginia 12")
Level: easy