Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
California 1
Thomas Larkin Thompson
Democratic
1886
Lost re-election Republican gain
3
California 2
Marion Biggs
Democratic
1886
Re-elected
4
California 3
Joseph McKenna
Republican
1884
Re-elected
5
California 4
William W. Morrow
Republican
1884
Re-elected
6
California 5
Charles N. Felton
Republican
1884
Retired Democratic gain
7
California 6
William Vandever
Republican
1886
Retired Republican hold

Questions and formulas:
Question: What incumbent was re-elected in the district in california 3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="re-elected")*(A1="california 3")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,(E2:E7="re-elected")*(A2:A7="california 3")),2))
Level: medium
Question: What is the district of the incumbent Thomas Larkin Thompson?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="thomas larkin thompson"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,B2:B7="thomas larkin thompson"),1))
Level: medium
Question: What incumbent has a re-elected result and first elected larger than 1884?
Formula: LET(query1,LET(query1,FILTER(A1:E1,E1="re-elected"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>1884))
Formula2: LET(query1,LET(query1,FILTER(A2:E7,E2:E7="re-elected"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>1884))
Level: hard