Table:
0
A
B
C
D
E
1
Name
Residence
Party
Years in Assembly
Years in Senate
2
Sheila Kuehl
Santa Monica
Democratic
1994–2000
2000–2008
3
Carole Migden
San Francisco
Democratic
1996–2002
2004–2008
4
Christine Kehoe
San Diego
Democratic
2000–2004
2004–2012
5
Jackie Goldberg
Los Angeles
Democratic
2000–2006
—
6
John Laird
Santa Cruz
Democratic
2002–2008
—

Questions and formulas:
Question: What is the political party of Jackie Goldberg?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="jackie goldberg"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,A2:A6="jackie goldberg"),3))
Level: medium
Question: During what years was Christine Kehoe in Assembly?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="christine kehoe"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,A2:A6="christine kehoe"),4))
Level: medium
Question: What were the San Francisco resident's years in assembly?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="san francisco"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,B2:B6="san francisco"),4))
Level: medium
Question: What political party does the person from San Diego belong to?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="san diego"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,B2:B6="san diego"),3))
Level: medium