Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
California 1
William F. Englebright
Republican
1906
Lost re-election Democratic gain
3
California 2
Duncan E. McKinlay
Republican
1904
Defeated in primary Republican hold
4
California 3
Joseph R. Knowland
Republican
1904
Re-elected
5
California 4
Julius Kahn
Republican
1898
Re-elected
6
California 5
Everis A. Hayes
Republican
1904
Re-elected
7
California 6
James C. Needham
Republican
1898
Re-elected
8
California 7
James McLachlan
Republican
1900
Defeated in primary Republican hold
9
California 8
Sylvester C. Smith
Republican
1904
Re-elected

Questions and formulas:
Question: What was the District of California 2 result?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="california 2"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,A2:A9="california 2"),5))
Level: medium
Question: What was the district Incumbent Julius Kahn was in that was smaller than 1906?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="julius kahn"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1906))
Formula2: LET(query1,LET(query1,FILTER(A2:E9,B2:B9="julius kahn"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1906))
Level: hard
Question: What was the lowest re-elected result for Sylvester C. Smith?
Formula: MIN(FILTER(D1, (E1="re-elected")*(B1="sylvester c. smith")))
Formula2: MIN(FILTER(D2:D9, (E2:E9="re-elected")*(B2:B9="sylvester c. smith")))
Level: easy
Question: What was the result for Julius Kahn's first election of 1898?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="julius kahn"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=1898))
Formula2: LET(query1,LET(query1,FILTER(A2:E9,B2:B9="julius kahn"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=1898))
Level: hard