Table:
0
A
B
C
D
E
1
Rank
Name
Headquarters
Primary industry
Market value ( USD million)
2
1
General Electric
United States
Conglomerate
222,748
3
2
Royal Dutch Shell
The Netherlands
Oil and gas
191,002
4
3
Microsoft
United States
Software industry
159,660
5
4
Exxon Mobil
United States
Oil and gas
157,970
6
5
The Coca-Cola Company
United States
Beverage
151,288
7
6
Intel Corporation
United States
Computer hardware
150,838
8
7
Nippon Telegraph and Telephone
Japan
Telecommunications
146,139
9
8
Merck
United States
Health care
120,757
10
9
Toyota Motor Corporation
Japan
Automotive
116,585
11
10
Novartis
Switzerland
Health care
104,468

Questions and formulas:
Question: Where is the company headquarted that has a Market value ( USD million) larger than 146,139, a Rank above 3, and a Primary industry of oil and gas?
Formula: LET(query1,LET(query1,FILTER(A1:E1,D1="oil and gas"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,5)),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,(CHOOSECOLS(query1,2)>146139)*(CHOOSECOLS(query1,3)<3)))
Formula2: LET(query1,LET(query1,FILTER(A2:E11,D2:D11="oil and gas"),SUMMARIZE(CHOOSECOLS(query1,3),SUMX(CHOOSECOLS(query1,5)),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,(CHOOSECOLS(query1,2)>146139)*(CHOOSECOLS(query1,3)<3)))
Level: hard