Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
California 1
William Rosecrans
Democratic
1880
Re-elected
3
California 2
Horace F. Page
Republican
1872
Lost re-election Democratic gain
4
California 3
Campbell P. Berry
Democratic
1879
Retired Democratic hold
5
California 4
Romualdo Pacheco
Republican
1876
Retired Democratic gain
6
California at-large 2 seats on a general ticket
None (New seat)
None (New seat)
None (New seat)
New seat Democratic gain

Questions and formulas:
Question: Which District has a Party of republican and a Result of lost re-election democratic gain?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="republican")*(E1="lost re-election democratic gain")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(C2:C6="republican")*(E2:E6="lost re-election democratic gain")),1))
Level: medium
Question: What is First elected that has republican Party and a Result of retired democratic gain?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="republican")*(E1="retired democratic gain")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(C2:C6="republican")*(E2:E6="retired democratic gain")),4))
Level: medium
Question: What is the First elected of california 3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="california 3"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,A2:A6="california 3"),4))
Level: medium
Question: Which Incumbent has a Result of retired democratic gain?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="retired democratic gain"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,E2:E6="retired democratic gain"),2))
Level: medium
Question: Which First elected has a Incumbent of none (new seat)?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="none (new seat)"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,B2:B6="none (new seat)"),4))
Level: medium
Question: What is the First elected that has a republican party and california 4?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="republican")*(A1="california 4")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(C2:C6="republican")*(A2:A6="california 4")),4))
Level: medium