Table:
0
A
B
C
D
E
F
G
1
Year
Party
Governor
Lieutenant Governor
Comptroller
Attorney General
U.S. Senate
2
1998
Democratic
Peter Vallone
Sandra Frankel
Carl McCall
Eliot Spitzer
Charles Schumer
3
1998
Liberal
Betsy McCaughey Ross
Jonathan Reiter
Carl McCall
Eliot Spitzer
Charles Schumer
4
2002
Democratic
Carl McCall
Dennis Mehiel
Alan Hevesi
Eliot Spitzer
(no election)
5
2002
Independence
Tom Golisano
Mary Donohue
John Faso
Eliot Spitzer
(no election)
6
2006
Democratic
Eliot Spitzer
David Paterson
Alan Hevesi
Andrew Cuomo
Hillary Rodham Clinton
7
2006
Independence
Eliot Spitzer
David Paterson
Alan Hevesi
Jeanine Pirro
Hillary Rodham Clinton
8
2006
Working Families
Eliot Spitzer
David Paterson
Alan Hevesi
Andrew Cuomo
Hillary Rodham Clinton

Questions and formulas:
Question: what is the U.S. senate when the year is after 2002 and the party is working families?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(A1>2002)*(B1="working families")),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G8,(A2:A8>2002)*(B2:B8="working families")),7))
Level: medium
Question: How many times what the comptroller alan hevesi and the party working families?
Formula: ROWS(UNIQUE(FILTER(A1, (E1="alan hevesi")*(B1="working families"))))
Formula2: ROWS(UNIQUE(FILTER(A2:A8, (E2:E8="alan hevesi")*(B2:B8="working families"))))
Level: medium