Table:
0
A
B
C
D
E
F
G
1
State
Governor
Senior U.S. Senator
Junior U.S. Senator
U.S. House Delegation
Upper House Majority
Lower House Majority
2
CT
D. Malloy
R. Blumenthal
C. Murphy
Democratic 5–0
Democratic 22–14
Democratic 99–52
3
ME
P. LePage
S. Collins
A. King
Democratic 2–0
Democratic 19–15–1
Democratic 86–60–3
4
MA
D. Patrick
E. Warren
E. Markey
Democratic 9–0
Democratic 36–4
Democratic 128–31–1
5
NH
M. Hassan
J. Shaheen
K. Ayotte
Democratic 2–0
Republican 13–11
Democratic 222–178
6
RI
L. Chafee
J. Reed
S. Whitehouse
Democratic 2–0
Democratic 29–8–1
Democratic 69–6

Questions and formulas:
Question: Who was the senior US senator in the state whose governor was D. Patrick?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="D. Patrick"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,B2:B6="D. Patrick"),3))
Level: medium
Question: What's the lower house majority in the state whose Senior senator is J. Shaheen?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,C1="J. Shaheen"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,C2:C6="J. Shaheen"),7))
Level: medium