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) 64% Bennett Bozman (D) 36%
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) 76% Colin Harby (R) 24%
5
Maryland 4
Albert Wynn
Democratic
1992
Re-elected
Albert Wynn (D) 88% John Kimble (R) 12%
6
Maryland 5
Steny Hoyer
Democratic
1981
Re-elected
Steny Hoyer (D) 65% Thomas Hutchins (R) 35%
7
Maryland 6
Roscoe Bartlett
Republican
1992
Re-elected
Roscoe Bartlett (R) 61% Donald DeArmon (D) 39%
8
Maryland 7
Elijah Cummings
Democratic
1996
Re-elected
Elijah Cummings (D) 87% Kenneth Kondner (R) 13%

Questions and formulas:
Question: What party did incumbent Albert Wynn belong to? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Albert Wynn"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,B2:B8="Albert Wynn"),3))
Level: medium
Question: What was the result of the election in the Maryland 7 district? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Maryland 7"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Maryland 7"),5))
Level: medium
Question: How many candidates ran in the election where Wayne Gilchrest was the incumbent?
Formula: ROWS(UNIQUE(FILTER(F1, B1="Wayne Gilchrest")))
Formula2: ROWS(UNIQUE(FILTER(F2:F8, B2:B8="Wayne Gilchrest")))
Level: medium
Question: What were the results in the election where Albert Wynn was the incumbent? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Albert Wynn"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,B2:B8="Albert Wynn"),5))
Level: medium
Question: Who were the candidates in the Maryland 5 district election? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Maryland 5"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Maryland 5"),6))
Level: medium