Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Virginia 1
Robert Rutherford
Democratic-Republican
1793
Lost re-election Federalist gain
Daniel Morgan (F) Robert Rutherford (DR)
3
Virginia 4
Francis Preston
Democratic-Republican
1793
Retired Democratic-Republican hold
Abram Trigg (DR)
4
Virginia 5
George Hancock
Federalist
1793
Retired Democratic-Republican gain
John J. Trigg (DR)
5
Virginia 6
Isaac Coles
Democratic-Republican
1793
Retired Democratic-Republican hold
Matthew Clay (DR)
6
Virginia 7
Abraham B. Venable
Democratic-Republican
1790
Re-elected
Abraham B. Venable (DR)
7
Virginia 8
Thomas Claiborne
Democratic-Republican
1793
Re-elected
Thomas Claiborne (DR) 62.3% Jesse Browne (F) 37.7%
8
Virginia 9
William B. Giles
Democratic-Republican
1790
Re-elected
William B. Giles (DR)
9
Virginia 10
Carter B. Harrison
Democratic-Republican
1793
Re-elected
Carter B. Harrison (DR) 55.4% Edwin Gray (F) 44.6%
10
Virginia 11
Josiah Parker
Federalist
1789
Re-elected
Josiah Parker (F)
11
Virginia 12
John Page
Democratic-Republican
1789
Lost re-election Federalist gain
Thomas Evans (F) John Page (DR)
12
Virginia 13
John Clopton
Democratic-Republican
1795
Re-elected
John Clopton (DR) Burwell Bassett (F)
13
Virginia 14
Samuel J. Cabell
Democratic-Republican
1795
Re-elected
Samuel J. Cabell (DR)
14
Virginia 15
James Madison, Jr.
Democratic-Republican
1789
Retired Democratic-Republican hold
John Dawson (DR) Thomas Posey (F)
15
Virginia 17
Richard Brent
Democratic-Republican
1795
Re-elected
Richard Brent (DR) 100% Leven Powell (F)

Questions and formulas:
Question: If the district is Virginia 8, who is the Incumbent?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Virginia 8"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,A2:A15="Virginia 8"),2))
Level: medium
Question: If the district is Virginia 17, who are the candidates?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Virginia 17"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,A2:A15="Virginia 17"),6))
Level: medium
Question: In how many different parts was the incumbent Abraham B. Venable?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Abraham B. Venable"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,B2:B15="Abraham B. Venable"),3))
Level: medium