Table:
0
A
B
C
D
E
F
1
Year
Office
Election
Subject
Party
Votes
2
2002
Queen Anne's County State's Attorney
General
Frank Kratovil
Democratic
9,169
3
2006
Queen Anne's County State's Attorney
General
Frank Kratovil
Democratic
13,894
4
2008
U.S. House , Maryland's 1st district
Primary
Frank Kratovil
Democratic
28,566
5
2008
U.S. House , Maryland's 1st district
General
Frank Kratovil
Democratic
177,065
6
2010
U.S. House , Maryland's 1st district
General
Andy Harris
Republican
155,118

Questions and formulas:
Question: What is the name of the subject who ran in the general election for Queen Anne's County State's Attorney?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,(C1="general")*(B1="queen anne's county state's attorney")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,(C2:C6="general")*(B2:B6="queen anne's county state's attorney")),4))
Level: medium