Table:
0
A
B
C
D
E
F
G
H
I
1
company id
rank
company name
headquarters
main industry
sales billion
profits billion
assets billion
market value
2
1
1
ExxonMobil
USA
Oil and gas
433.5
41.1
331.1
407.4
3
2
3
General Electric
USA
Conglomerate
147.3
14.2
717.2
213.7
4
3
4
Royal Dutch Shell
Netherlands
Oil and gas
470.2
30.9
340.5
227.6
5
4
5
Industrial and Commercial Bank of China
China
Banking
82.6
25.1
2039.1
237.4
6
5
6
HSBC
UK
Banking
102
16.2
2550
164.3
7
6
7
PetroChina
China
Oil and gas
310.1
20.6
304.7
294.7
8
7
8
Berkshire Hathaway
USA
Conglomerate
143.7
10.3
392.6
202.2
9
8
9
Wells Fargo
USA
Banking
87.6
15.9
1313.9
178.7
10
9
10
Petrobras
Brazil
Oil and gas
145.9
20.1
319.4
180
11
10
11
BP
UK
Oil and gas
375.5
25.7
292.5
147.4

Questions and formulas:
Question: How many gas companies are there?
Formula: SUM(A1)
Formula2: SUM(A2:A11)
Level: easy
Question: What is the total number of companies?
Formula: SUM(A1)
Formula2: SUM(A2:A11)
Level: easy
Question: Show the company name and the main industry for all companies whose headquarters are not from USA.
Formula: CHOOSE({1,2},FILTER(C1,D1<>"USA"),FILTER(E1,D1<>"USA"))
Formula2: CHOOSE({1,2},FILTER(C2:C11,D2:D11<>"USA"),FILTER(E2:E11,D2:D11<>"USA"))
Level: medium
Question: What are the companies and main industries of all companies that are not headquartered in the United States?
Formula: CHOOSE({1,2},FILTER(C1,D1<>"USA"),FILTER(E1,D1<>"USA"))
Formula2: CHOOSE({1,2},FILTER(C2:C11,D2:D11<>"USA"),FILTER(E2:E11,D2:D11<>"USA"))
Level: medium
Question: Show all company names and headquarters in the descending order of market value.
Formula: SORTBY(CHOOSE({1,2},C1,D1),I1,-1)
Formula2: SORTBY(CHOOSE({1,2},C2:C11,D2:D11),I2:I11,-1)
Level: easy
Question: What are the names and headquarters of all companies ordered by descending market value?
Formula: SORTBY(CHOOSE({1,2},C1,D1),I1,-1)
Formula2: SORTBY(CHOOSE({1,2},C2:C11,D2:D11),I2:I11,-1)
Level: easy
Question: Show all main industry for all companies.
Formula: UNIQUE(E1)
Formula2: UNIQUE(E2:E11)
Level: easy
Question: What are the different main industries for all companies?
Formula: UNIQUE(E1)
Formula2: UNIQUE(E2:E11)
Level: easy
Question: List all headquarters and the number of companies in each headquarter.
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D11,SUMX(A2:A11))
Level: easy
Question: For each headquarter, what are the headquarter and how many companies are centered there?
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D11,SUMX(A2:A11))
Level: easy
Question: Show all main industry and total market value in each industry.
Formula: SUMMARIZE(E1,SUMX(I1))
Formula2: SUMMARIZE(E2:E11,SUMX(I2:I11))
Level: easy
Question: What are the main indstries and total market value for each industry?
Formula: SUMMARIZE(E1,SUMX(I1))
Formula2: SUMMARIZE(E2:E11,SUMX(I2:I11))
Level: easy
Question: For each main industry, what is the total number of companies for the industry with the highest total market value?
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(A1),SUMX(I1)), 3, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E11,SUMX(A2:A11),SUMX(I2:I11)), 3, -1), 1)
Level: hard
Question: Show headquarters with at least two companies in the banking industry.
Formula: LET(query1,LET(query1,FILTER(A1:I1,E1="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,LET(query1,FILTER(A2:I11,E2:E11="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: What are the headquarters with at least two companies in the banking industry?
Formula: LET(query1,LET(query1,FILTER(A1:I1,E1="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,LET(query1,FILTER(A2:I11,E2:E11="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: how many companies on record?
Formula: SUM(A1)
Formula2: SUM(A2:A11)
Level: easy
Question: the names and ids of companies from all industries that don't have headquarters in usa 
Formula: LET(a,HSTACK(C1,A1,E1),b,E1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:I1,D1<>"usa"),5)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(C2:C11,A2:A11,E2:E11),b,E2:E11,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:I11,D2:D11<>"usa"),5)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: ids and main industries of companies whose headquarters aren't in usa.
Formula: LET(a,HSTACK(A1,E1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:I1,D1<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A11,E2:E11),b,A2:A11,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:I11,D2:D11<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: What are main industries and companies?
Formula: UNIQUE(HSTACK(E1,A1))
Formula2: UNIQUE(HSTACK(E2:E11,A2:A11))
Level: easy
Question: The main industries of all companies
Formula: UNIQUE(HSTACK(E1,A1))
Formula2: UNIQUE(HSTACK(E2:E11,A2:A11))
Level: easy
Question: How many companies at each headquarter?
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D11,SUMX(A2:A11))
Level: easy
Question: How many companies at different headquarters?
Formula: SUMMARIZE(D1,DCOUNTX(A1))
Formula2: SUMMARIZE(D2:D11,DCOUNTX(A2:A11))
Level: easy
Question: What's the total market value of each industry?
Formula: SUMMARIZE(E1,SUMX(I1))
Formula2: SUMMARIZE(E2:E11,SUMX(I2:I11))
Level: easy
Question: What is the total market value of each main industry?
Formula: SUMMARIZE(E1,SUMX(I1))
Formula2: SUMMARIZE(E2:E11,SUMX(I2:I11))
Level: easy
Question: how many companies does the main industry with the highest total market value have? 
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(A1),SUMX(I1)), 3, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E11,SUMX(A2:A11),SUMX(I2:I11)), 3, -1), 1)
Level: hard
Question: Which headquarters have two or more banking companies?
Formula: LET(query1,LET(query1,FILTER(A1:I1,E1="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,LET(query1,FILTER(A2:I11,E2:E11="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: Which headquarters have two or more banking companies?
Formula: LET(query1,LET(query1,FILTER(A1:I1,E1="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,LET(query1,FILTER(A2:I11,E2:E11="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: how many companies?
Formula: SUM(A1)
Formula2: SUM(A2:A11)
Level: easy
Question: the names and ids of companies whose headquarters are not in usa in all main industries.
Formula: LET(query1,FILTER(A1:I1,D1<>"usa"),UNIQUE(CHOOSECOLS(query1,3,5,1)))
Formula2: LET(query1,FILTER(A2:I11,D2:D11<>"usa"),UNIQUE(CHOOSECOLS(query1,3,5,1)))
Level: hard
Question: Main industries and ids for companies whose headquarters are not in usa.
Formula: LET(a,HSTACK(E1,A1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:I1,D1<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(E2:E11,A2:A11),b,A2:A11,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:I11,D2:D11<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: What are the total market values for different main industries?
Formula: SUMMARIZE(E1,SUMX(I1))
Formula2: SUMMARIZE(E2:E11,SUMX(I2:I11))
Level: easy
Question: the number of companies for the main industry with the highest total market value.
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(A1),SUMX(I1)), 3, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E11,SUMX(A2:A11),SUMX(I2:I11)), 3, -1), 1)
Level: hard
Question: The headquarter having at least 2 companies in banking industry.
Formula: LET(query1,LET(query1,FILTER(A1:I1,E1="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,LET(query1,FILTER(A2:I11,E2:E11="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: The headquarters having at least two companies in the banking industry.
Formula: LET(query1,LET(query1,FILTER(A1:I1,E1="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,LET(query1,FILTER(A2:I11,E2:E11="banking"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard