Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Results
2
Maryland 1
Wayne Gilchrest
Republican
1990
Re-elected
3
Maryland 2
Dutch Ruppersberger
Democratic
2002
Re-elected
4
Maryland 3
Ben Cardin
Democratic
1986
Retired to run for U.S. Senate Democratic hold
5
Maryland 4
Albert Wynn
Democratic
1992
Re-elected
6
Maryland 5
Steny Hoyer
Democratic
1981
Re-elected
7
Maryland 6
Roscoe Bartlett
Republican
1992
Re-elected
8
Maryland 7
Elijah Cummings
Democratic
1996
Re-elected
9
Maryland 8
Chris Van Hollen Jr.
Democratic
2002
Re-elected

Questions and formulas:
Question: What are the results of the incumbent who was first elected in 1996?
Formula: FILTER(E1,D1=1996)
Formula2: FILTER(E2:E9,D2:D9=1996)
Level: easy
Question: What are the results of the incumbent who was first elected in 1996?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1996),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,D2:D9=1996),5))
Level: medium
Question: Who is the incumbent who was first elected before 2002 from the maryland 3 district?
Formula: FILTER(B1,(D1<2002)*(A1="maryland 3"))
Formula2: FILTER(B2:B9,(D2:D9<2002)*(A2:A9="maryland 3"))
Level: easy
Question: What is the party of the maryland 6 district?
Formula: FILTER(C1,A1="maryland 6")
Formula2: FILTER(C2:C9,A2:A9="maryland 6")
Level: easy