Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
Illinois 1
Elihu B. Washburne
Republican
1852
Re-elected
3
Illinois 2
John F. Farnsworth
Republican
1856
Retired Republican Hold
4
Illinois 3
Owen Lovejoy
Republican
1856
Re-elected
5
Illinois 4
William Kellogg
Republican
1856
Re-elected
6
Illinois 5
Isaac N. Morris
Democratic
1856
Retired Democratic Hold
7
Illinois 6
John A. McClernand
Democratic
1859
Re-elected
8
Illinois 7
James C. Robinson
Democratic
1858
Re-elected
9
Illinois 8
Philip B. Fouke
Democratic
1858
Re-elected
10
Illinois 9
John A. Logan
Democratic
1858
Re-elected

Questions and formulas:
Question: Which Result has a Party of republican, and a First elected smaller than 1856?
Formula: LET(query1,LET(query1,FILTER(A1:E1,C1="republican"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1856))
Formula2: LET(query1,LET(query1,FILTER(A2:E10,C2:C10="republican"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1856))
Level: hard
Question: Which District has a First elected of 1856, and an Incumbent of william kellogg?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="william kellogg"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=1856))
Formula2: LET(query1,LET(query1,FILTER(A2:E10,B2:B10="william kellogg"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=1856))
Level: hard
Question: Which First elected has a District of illinois 3?
Formula: SUMIFS(D1,A1,"illinois 3")
Formula2: SUMIFS(D2:D10,A2:A10,"illinois 3")
Level: easy
Question: How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4?
Formula: SUM(FILTER(D1, (E1="re-elected")*(C1="republican")*(A1="illinois 4")))
Formula2: SUM(FILTER(D2:D10, (E2:E10="re-elected")*(C2:C10="republican")*(A2:A10="illinois 4")))
Level: easy