Table:
0
A
B
C
D
E
F
G
1
1973 Democratic run-off primary
Manhattan
The Bronx
Brooklyn
Queens
Richmond [Staten Is.]
Total
2
Abraham Beame
77,928
97,415
201,866
153,415
17,999
548,623
3
Abraham Beame
41%
53%
68%
73%
78%
548,623
4
Herman Badillo
112,482
86,482
93,140
57,658
4,819
354,581
5
Herman Badillo
59%
47%
32%
27%
21%
354,581
6
T O T A L
190,410
183,897
295,006
211,073
22,818
903,204

Questions and formulas:
Question: What was the Queens number when Brooklyn was 201,866?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,D1=201866),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,D2:D6=201866),5))
Level: medium
Question: Which Queens number in the 1973 Democratic run-off primary involved Herman Badillo and where the Bronx's percentage was 47%?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(A1="herman badillo")*(C1="47%")),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G6,(A2:A6="herman badillo")*(C2:C6="47%")),5))
Level: medium
Question: Which Manhattan number was there when the Total was bigger than 354,581 and The Bronx's number was 97,415?
Formula: LET(query1,LET(query1,FILTER(A1:G1,C1="97,415"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)>354581))
Formula2: LET(query1,LET(query1,FILTER(A2:G6,C2:C6="97,415"),SUMMARIZE(CHOOSECOLS(query1,2),SUMX(CHOOSECOLS(query1,7)))),FILTER(query1,CHOOSECOLS(query1,2)>354581))
Level: hard