Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
Massachusetts 1
Thomas D. Eliot
Republican
1858
Re-elected
3
Massachusetts 2
James Buffington
Republican
1854
Re-elected
4
Massachusetts 3
Charles Francis Adams, Sr.
Republican
1858
Re-elected
5
Massachusetts 4
Alexander H. Rice
Republican
1858
Re-elected
6
Massachusetts 5
Anson Burlingame
Republican
1854
Defeated Constitutional Union Gain
7
Massachusetts 6
John B. Alley
Republican
1858
Re-elected
8
Massachusetts 7
Daniel W. Gooch
Republican
1858
Re-elected
9
Massachusetts 8
Charles R. Train
Republican
1859
Re-elected
10
Massachusetts 9
Eli Thayer
Constitutional Union
1856
Defeated Republican Gain
11
Massachusetts 10
Charles Delano
Republican
1858
Re-elected
12
Massachusetts 11
Henry L. Dawes
Republican
1856
Re-elected

Questions and formulas:
Question: Which Incumbent has a District of massachusetts 2?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="massachusetts 2"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E12,A2:A12="massachusetts 2"),2))
Level: medium
Question: Which Incumbent has a District of massachusetts 8?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="massachusetts 8"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E12,A2:A12="massachusetts 8"),2))
Level: medium
Question: Which District has a First elected larger than 1858?
Formula: LET(query1,SUMMARIZE(A1,SUMX(D1)),FILTER(query1,CHOOSECOLS(query1,2)>1858))
Formula2: LET(query1,SUMMARIZE(A2:A12,SUMX(D2:D12)),FILTER(query1,CHOOSECOLS(query1,2)>1858))
Level: hard