Table:
0
A
B
C
D
E
1
Year
Subject
Party
Votes
Opponent
2
1995-Special
Gerald Connolly
Democratic
4,478
Jeannemarie Devolites Davis
3
1995
Gerald Connolly
Democratic
10,578
Jeannemarie Devolites Davis
4
1999
Gerald Connolly
Democratic
14,309
Unopposed
5
2003
Gerald Connolly
Democratic
98,419
Mychele B. Brickner
6
2007
Gerald Connolly
Democratic
113,830
Gary H. Baise

Questions and formulas:
Question: How many votes did Jeannemarie Devolites Davis get in 1995-Special?
Formula: SUM(FILTER(D1, (E1="jeannemarie devolites davis")*(A1="1995-special")))
Formula2: SUM(FILTER(D2:D6, (E2:E6="jeannemarie devolites davis")*(A2:A6="1995-special")))
Level: easy
Question: Who was the subject for the year of 2007?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="2007"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,A2:A6="2007"),2))
Level: medium
Question: Which party has a voting total greater than 4,478?
Formula: LET(query1,SUMMARIZE(C1,SUMX(D1)),FILTER(query1,CHOOSECOLS(query1,2)>4478))
Formula2: LET(query1,SUMMARIZE(C2:C6,SUMX(D2:D6)),FILTER(query1,CHOOSECOLS(query1,2)>4478))
Level: hard