Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Results
Candidates
2
Maryland 1
Wayne Gilchrest
Republican
1990
Re-elected
Wayne Gilchrest (R) 69% Irving Pinder (D) 31%
3
Maryland 2
Robert Ehrlich
Republican
1994
Re-elected
Robert Ehrlich (R) 69% Kenneth Bosley (D) 31%
4
Maryland 3
Ben Cardin
Democratic
1986
Re-elected
Ben Cardin (D) 78% Colin Harby (R) 22%
5
Maryland 4
Albert Wynn
Democratic
1992
Re-elected
Albert Wynn (D) 86% John Kimble (R) 14%
6
Maryland 5
Steny Hoyer
Democratic
1981
Re-elected
Steny Hoyer (D) 66% Robert Ostrom (R) 34%
7
Maryland 6
Roscoe Bartlett
Republican
1992
Re-elected
Roscoe Bartlett (R) 63% Timothy McCown (D) 37%
8
Maryland 7
Elijah Cummings
Democratic
1996
Re-elected
Elijah Cummings (D) 86% Kenneth Kondner (R) 14%

Questions and formulas:
Question: What party was the winner in the district Maryland 6?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Maryland 6"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Maryland 6"),3))
Level: medium
Question: Who run for office in district Maryland 3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Maryland 3"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Maryland 3"),6))
Level: medium
Question: List the candidates in district Maryland 1 where the republican party won.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(C1="Republican")*(A1="Maryland 1")),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,(C2:C8="Republican")*(A2:A8="Maryland 1")),6))
Level: medium
Question: When did the elections take place in district Maryland 2?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Maryland 2"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Maryland 2"),4))
Level: medium