Table:
0
A
B
C
D
E
F
G
H
1
company id
company name
headquarters
industry
sales billion
profits billion
assets billion
market value billion
2
1
JPMorgan Chase
USA
Banking
115.5
17.4
2117.6
182.2
3
2
HSBC
UK
Banking
103.3
13.3
2467.9
186.5
4
3
General Electric
USA
Conglomerate
156.2
11.6
751.2
216.2
5
4
ExxonMobil
USA
Oil and gas
341.6
30.5
302.5
407.2
6
5
Royal Dutch Shell
Netherlands
Oil and gas
369.1
20.1
317.2
212.9
7
6
PetroChina
China
Oil and gas
222.3
21.2
251.3
320.8
8
7
Industrial and Commercial Bank of China
China
Banking
69.2
18.8
1723.5
239.5
9
8
Berkshire Hathaway
USA
Conglomerate
136.2
13
372.2
211
10
9
Petrobras
Brazil
Oil and gas
121.3
21.2
313.2
238.8
11
10
Citigroup
USA
Banking
111.5
10.6
1913.9
132.8
12
11
BNP Paribas
France
Banking
130.4
10.5
2680.7
88
13
12
Wells Fargo
USA
Banking
93.2
12.4
1258.1
170.6
14
13
Santander Group
Spain
Banking
109.7
12.8
1570.6
94.7
15
14
AT&T Inc.
USA
Telecommunications
124.3
19.9
268.5
168.2
16
15
Gazprom
Russia
Oil and gas
98.7
25.7
275.9
172.9
17
16
Chevron
USA
Oil and gas
189.6
19
184.8
200.6
18
17
China Construction Bank
China
Banking
58.2
15.6
1408
224.8
19
18
Walmart
USA
Retailing
421.8
16.4
180.7
187.3
20
19
Total
France
Oil and gas
188.1
14.2
192.8
138

Questions and formulas:
Question: How many companies are there?
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: Count the number of companies.
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: Sort the company names in descending order of the market value
Formula: SORT(SUMMARIZE(B1,SUMX(H1)), 2, -1)
Formula2: SORT(SUMMARIZE(B2:B20,SUMX(H2:H20)), 2, -1)
Level: medium
Question: What are the names of companies whose headquarters are not "USA"?
Formula: FILTER(B1,C1<>"USA")
Formula2: FILTER(B2:B20,C2:C20<>"USA")
Level: easy
Question: Find the names of the companies whose headquarters are not located in "USA".
Formula: FILTER(B1,C1<>"USA")
Formula2: FILTER(B2:B20,C2:C20<>"USA")
Level: easy
Question: What are the name and assets of each company, sorted in ascending order of company name?
Formula: SORTBY(CHOOSE({1,2},B1,G1),B1,1)
Formula2: SORTBY(CHOOSE({1,2},B2:B20,G2:G20),B2:B20,1)
Level: easy
Question: List the name and assets of each company in ascending order of company name.
Formula: SORTBY(CHOOSE({1,2},B1,G1),B1,1)
Formula2: SORTBY(CHOOSE({1,2},B2:B20,G2:G20),B2:B20,1)
Level: easy
Question: What are the average profits of companies?
Formula: AVERAGE(F1)
Formula2: AVERAGE(F2:F20)
Level: easy
Question: Compute the average profits companies make.
Formula: AVERAGE(F1)
Formula2: AVERAGE(F2:F20)
Level: easy
Question: How many different industries are the companies in?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D20))
Level: easy
Question:  Count the number of distinct company for each industries.
Formula: SUMMARIZE(D1,DCOUNTX(A1))
Formula2: SUMMARIZE(D2:D20,DCOUNTX(A2:A20))
Level: easy
Question: Please show each industry and the corresponding number of companies in that industry.
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D20,SUMX(A2:A20))
Level: easy
Question: Sort all the industries in descending order of the count of companies in each industry
Formula: SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1)
Formula2: SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1)
Level: medium
Question: List the industry shared by the most companies.
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1), 1)
Level: hard
Question: Which industry has the most companies?
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1), 1)
Level: hard
Question: Find the number of companies whose industry is "Banking" or "Conglomerate",
Formula: ROWS(FILTER(A1,(D1="Banking")+(D1="Conglomerate")))
Formula2: ROWS(FILTER(A2:A20,(D2:D20="Banking")+(D2:D20="Conglomerate")))
Level: easy
Question: How many companies are in either "Banking" industry or "Conglomerate" industry?
Formula: ROWS(FILTER(A1,(D1="Banking")+(D1="Conglomerate")))
Formula2: ROWS(FILTER(A2:A20,(D2:D20="Banking")+(D2:D20="Conglomerate")))
Level: easy
Question: Show the headquarters shared by more than two companies.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Formula2: LET(query1,SUMMARIZE(C2:C20,SUMX(A2:A20)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Level: hard
Question: Which headquarter locations are used by more than 2 companies?
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Formula2: LET(query1,SUMMARIZE(C2:C20,SUMX(A2:A20)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Level: hard
Question: How many companies for each industry?
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D20,SUMX(A2:A20))
Level: easy
Question: Which industry has the most companies?
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1), 1)
Level: hard
Question: Industry with the most companies.
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1), 1)
Level: hard
Question: Industry with the most companies.
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1), 1)
Level: hard
Question: How many companies are in the banking or conglomerate industry?
Formula: SUM(FILTER(A1, (D1="banking")+(D1="conglomerate")))
Formula2: SUM(FILTER(A2:A20, (D2:D20="banking")+(D2:D20="conglomerate")))
Level: easy
Question: How many companies are in the banking or conglomerate industry?
Formula: SUM(FILTER(A1, (D1="banking")+(D1="conglomerate")))
Formula2: SUM(FILTER(A2:A20, (D2:D20="banking")+(D2:D20="conglomerate")))
Level: easy
Question: The headquarters with more than 2 companies. 
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Formula2: LET(query1,SUMMARIZE(C2:C20,SUMX(A2:A20)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Level: hard
Question: Headquarters with more than 2 companies.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Formula2: LET(query1,SUMMARIZE(C2:C20,SUMX(A2:A20)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Level: hard
Question: The number of companies.
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: How many companies?
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: The name of company whose headquarter is not at usa.
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,C1<>"usa"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H20,C2:C20<>"usa"),2))
Level: medium
Question: Show me the name and the ID of the company whose headquarter's not in the usa.
Formula: LET(a,HSTACK(B1,A1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:H1,C1<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B20,A2:A20),b,A2:A20,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:A20:H1,C2:C20<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Show me the respective number of industries and companies.
Formula: HSTACK(ROWS(UNIQUE(D1)), SUM(A1))
Formula2: HSTACK(ROWS(UNIQUE(D2:D20)), SUM(A2:A20))
Level: hard
Question: How many companies and industries are there?
Formula: HSTACK(SUM(A1), ROWS(UNIQUE(D1)))
Formula2: HSTACK(SUM(A2:A20), ROWS(UNIQUE(D2:D20)))
Level: hard
Question: How many companies are there?
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: The number of companies.
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: How many companies are there?
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: How many companies?
Formula: SUM(A1)
Formula2: SUM(A2:A20)
Level: easy
Question: The name and id of the company whose headquarter is not usa.
Formula: LET(a,HSTACK(B1,A1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:H1,C1<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B20,A2:A20),b,A2:A20,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:A20:H1,C2:C20<>"usa"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: The respective number of industries and companies.
Formula: HSTACK(ROWS(UNIQUE(D1)), SUM(A1))
Formula2: HSTACK(ROWS(UNIQUE(D2:D20)), SUM(A2:A20))
Level: hard
Question: How many companies and industries separately are there?
Formula: HSTACK(SUM(A1), ROWS(UNIQUE(D1)))
Formula2: HSTACK(SUM(A2:A20), ROWS(UNIQUE(D2:D20)))
Level: hard
Question: the industry having the most companies.
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1), 1)
Level: hard
Question: The industry which has the most companies.
Formula: TAKE(SORT(SUMMARIZE(D1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(D2:D20,SUMX(A2:A20)), 2, -1), 1)
Level: hard
Question: What's the number of companies in banking or conglomerate industry?
Formula: SUM(FILTER(A1, (D1="banking")+(D1="conglomerate")))
Formula2: SUM(FILTER(A2:A20, (D2:D20="banking")+(D2:D20="conglomerate")))
Level: easy
Question: How many companies in banking or conglomerate industry?
Formula: SUM(FILTER(A1, (D1="banking")+(D1="conglomerate")))
Formula2: SUM(FILTER(A2:A20, (D2:D20="banking")+(D2:D20="conglomerate")))
Level: easy
Question: The headquarters where more than 2 companies were set
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Formula2: LET(query1,SUMMARIZE(C2:C20,SUMX(A2:A20)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Level: hard
Question: The headquarters having more than 2 companies.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Formula2: LET(query1,SUMMARIZE(C2:C20,SUMX(A2:A20)),FILTER(query1,CHOOSECOLS(query1,3)>2))
Level: hard