Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
Ohio 1
Benjamin Eggleston
Republican
1864
Re-elected
3
Ohio 2
Rutherford B. Hayes
Republican
1864
Re-elected
4
Ohio 3
Robert C. Schenck
Republican
1862
Re-elected
5
Ohio 4
William Lawrence
Republican
1864
Re-elected
6
Ohio 5
Francis C. Le Blond
Democratic
1862
Retired Democratic hold
7
Ohio 6
Reader W. Clarke
Republican
1864
Re-elected
8
Ohio 7
Samuel Shellabarger
Republican
1864
Re-elected
9
Ohio 8
James Randolph Hubbell
Republican
1864
Retired Republican hold
10
Ohio 9
Ralph P. Buckland
Republican
1864
Re-elected
11
Ohio 10
James M. Ashley
Republican
1862
Re-elected
12
Ohio 11
Hezekiah S. Bundy
Republican
1864
Retired Republican hold
13
Ohio 12
William E. Finck
Democratic
1862
Retired Democratic hold
14
Ohio 13
Columbus Delano
Republican
1864
Lost Re-election Democratic gain
15
Ohio 14
Martin Welker
Republican
1864
Re-elected
16
Ohio 15
Tobias A. Plants
Republican
1864
Re-elected
17
Ohio 16
John Bingham
Republican
1864
Re-elected
18
Ohio 17
Ephraim R. Eckley
Republican
1862
Re-elected
19
Ohio 18
Rufus P. Spalding
Republican
1862
Re-elected
20
Ohio 19
James A. Garfield
Republican
1862
Re-elected

Questions and formulas:
Question: Who is the incumbent that is a republican and first elected before 1864?
Formula: LET(query1,LET(query1,FILTER(A1:E1,C1="republican"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1864))
Formula2: LET(query1,LET(query1,FILTER(A2:E20,C2:C20="republican"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)<1864))
Level: hard
Question: What district is the democratic Francis C. Le Blond from?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="democratic")*(B1="francis c. le blond")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E20,(C2:C20="democratic")*(B2:B20="francis c. le blond")),1))
Level: medium
Question: In the Ohio 4 district, that is the first elected date that has a result of re-elected?
Formula: SUM(FILTER(D1, (E1="re-elected")*(A1="ohio 4")))
Formula2: SUM(FILTER(D2:D20, (E2:E20="re-elected")*(A2:A20="ohio 4")))
Level: easy
Question: What is the party in Ohio 6 District?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="ohio 6"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E20,A2:A20="ohio 6"),3))
Level: medium