Table:
0
A
B
C
D
E
F
1
District
Location
Representative
Cook PVI
2012 election results
Median household income (2011)
2
2nd
Marin County and the North Coast
Jared Huffman
D+20
69.0%–27.0% Obama
$56,576
3
3rd
Fairfield , Vacaville , and the Sacramento Valley
John Garamendi
D+3
54.3%–43.1% Obama
$53,602
4
5th
Santa Rosa , Napa County , Vallejo , and Martinez
Mike Thompson
D+19
69.7%–27.4% Obama
$58,942
5
9th
Antioch and most of San Joaquin County
Jerry McNerney
D+6
57.8%–40.1% Obama
$52,209
6
11th
Most of Contra Costa County
George Miller
D+17
67.5%–29.9% Obama
$69,586
7
12th
Most of San Francisco
Nancy Pelosi
D+34
84.0%–12.5% Obama
$69,046
8
13th
Berkeley , Oakland , and San Leandro
Barbara Lee
D+37
87.5%–9.0% Obama
$56,906
9
14th
Most of San Mateo County
Jackie Speier
D+23
74.2%–23.6% Obama
$79,287
10
15th
Hayward , Union City , and the Tri-Valley
Eric Swalwell
D+16
68.0%–29.8% Obama
$82,179
11
17th
Fremont and northern Silicon Valley
Mike Honda
D+20
71.9%–25.5% Obama
$92,030
12
18th
Menlo Park and western Silicon Valley
Anna Eshoo
D+18
68.2%–28.9% Obama
$97,001
13
19th
San Jose and Morgan Hill
Zoe Lofgren
D+19
71.2%–26.5% Obama
$71,479

Questions and formulas:
Question: What is the location that has the 12th district?
Formula: FILTER(B1,A1="12th")
Formula2: FILTER(B2:B13,A2:A13="12th")
Level: easy
Question: How many election results in 2012 had a Cook PVI of D+16?
Formula: ROWS(FILTER(E1,D1="D+16"))
Formula2: ROWS(FILTER(E2:E13,D2:D13="D+16"))
Level: easy
Question: What is the Cook PVI for the location that has a representative of Mike Thompson?
Formula: FILTER(D1,C1="Mike Thompson")
Formula2: FILTER(D2:D13,C2:C13="Mike Thompson")
Level: easy
Question: How many locations have a median household income in 2011 of $71,479?
Formula: ROWS(FILTER(B1,F1="$71,479"))
Formula2: ROWS(FILTER(B2:B13,F2:F13="$71,479"))
Level: easy
Question: What is the 2012 election results for locations whose representative is Barbara Lee?
Formula: FILTER(E1,C1="Barbara Lee")
Formula2: FILTER(E2:E13,C2:C13="Barbara Lee")
Level: easy