Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
South Carolina 1
John S. Richardson
Democratic
1878
Re-elected
3
South Carolina 2
Michael P. O'Connor
Democratic
1878
Re-elected
4
South Carolina 3
D. Wyatt Aiken
Democratic
1876
Re-elected
5
South Carolina 4
John H. Evins
Democratic
1876
Re-elected
6
South Carolina 5
George D. Tillman
Democratic
1878
Re-elected

Questions and formulas:
Question: Which Party has a First elected smaller than 1878, and a District of south carolina 3?
Formula: LET(query1,LET(query1,FILTER(A1:E1,A1="south carolina 3"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1878))
Formula2: LET(query1,LET(query1,FILTER(A2:E6,A2:A6="south carolina 3"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1878))
Level: hard
Question: Which Result has a First elected of 1876, and a District of south carolina 3?
Formula: LET(query1,LET(query1,FILTER(A1:E1,A1="south carolina 3"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=1876))
Formula2: LET(query1,LET(query1,FILTER(A2:E6,A2:A6="south carolina 3"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=1876))
Level: hard
Question: Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="john s. richardson"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>1876))
Formula2: LET(query1,LET(query1,FILTER(A2:E6,B2:B6="john s. richardson"),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>1876))
Level: hard