Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Maryland 1
George Dent
Federalist
1792
Re-elected
George Dent (F) 99.7% Philip Key 0.3%
3
Maryland 2
Richard Sprigg, Jr.
Democratic-Republican
1796 (special)
Re-elected
Richard Sprigg, Jr. (DR) 100%
4
Maryland 3
William Craik
Federalist
1796 (special)
Re-elected
William Craik (F) 51.0% Benjamin Edwards 49.0%
5
Maryland 5
Samuel Smith
Democratic-Republican
1792
Re-elected
Samuel Smith (DR) 100%
6
Maryland 7
William Hindman
Federalist
1792
Re-elected
William Hindman (F) 62.6% Robert Wright (DR) 37.4%

Questions and formulas:
Question: What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%?
Formula: FILTER(A1,(C1="Federalist")*(F1="William Craik (F) 51.0% Benjamin Edwards 49.0%"))
Formula2: FILTER(A2:A6,(C2:C6="Federalist")*(F2:F6="William Craik (F) 51.0% Benjamin Edwards 49.0%"))
Level: easy
Question: What is the party when the incumbent is samuel smith?
Formula: FILTER(C1,B1="Samuel Smith")
Formula2: FILTER(C2:C6,B2:B6="Samuel Smith")
Level: easy
Question: What is the party when the incumbent is samuel smith?
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 the result for the district Maryland 7?
Formula: FILTER(E1,A1="Maryland 7")
Formula2: FILTER(E2:E6,A2:A6="Maryland 7")
Level: easy
Question: Who is the candidates for district maryland 1?
Formula: FILTER(F1,A1="Maryland 1")
Formula2: FILTER(F2:F6,A2:A6="Maryland 1")
Level: easy