Table:
0
A
B
C
D
E
F
1
ship id
name
type
nationality
tonnage
2
1
Corbridge
Cargo ship
United Kingdom
3687
3
2
Farringford
Battle ship
United States
3146
4
3
Dromonby
Cargo ship
United Kingdom
3627
5
4
Author
Cargo ship
United Kingdom
3496
6
5
Trader
Battle ship
United Kingdom
3608
7
6
Ariadne
Cargo ship
United States
3035
8
7
Appam
Battle ship
United Kingdom
7781
9
8
Clan McTavish
Cargo ship
United States
5816

Questions and formulas:
Question: How many ships are there?
Formula: SUM(A1)
Formula2: SUM(A2:A9)
Level: easy
Question: What is the number of ships?
Formula: SUM(A1)
Formula2: SUM(A2:A9)
Level: easy
Question: List the name of ships in ascending order of tonnage.
Formula: SORTBY(B1,E1,1)
Formula2: SORTBY(B2:B9,E2:E9,1)
Level: easy
Question: what are the names of the ships ordered by ascending tonnage?
Formula: SORTBY(B1,E1,1)
Formula2: SORTBY(B2:B9,E2:E9,1)
Level: easy
Question: What are the type and nationality of ships?
Formula: CHOOSE({1,2},C1,D1)
Formula2: CHOOSE({1,2},C2:C9,D2:D9)
Level: easy
Question: What are the types and nationalities of every ship?
Formula: CHOOSE({1,2},C1,D1)
Formula2: CHOOSE({1,2},C2:C9,D2:D9)
Level: easy
Question: List the name of ships whose nationality is not "United States".
Formula: FILTER(B1,D1<>"United States")
Formula2: FILTER(B2:B9,D2:D9<>"United States")
Level: easy
Question: What are the names of the ships that are not from the United States?
Formula: FILTER(B1,D1<>"United States")
Formula2: FILTER(B2:B9,D2:D9<>"United States")
Level: easy
Question: Show the name of ships whose nationality is either United States or United Kingdom.
Formula: FILTER(B1,(D1="United States")+(D1="United Kingdom"))
Formula2: FILTER(B2:B9,(D2:D9="United States")+(D2:D9="United Kingdom"))
Level: easy
Question: What are the names of the ships  that are from either the US or the UK?
Formula: FILTER(B1,(D1="United States")+(D1="United Kingdom"))
Formula2: FILTER(B2:B9,(D2:D9="United States")+(D2:D9="United Kingdom"))
Level: easy
Question: What is the name of the ship with the largest tonnage?
Formula: LET(a,SORTBY(B1,E1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(B2:B9,E2:E9,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: What is the ship with the largest amount of tonnage called?
Formula: LET(a,SORTBY(B1,E1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(B2:B9,E2:E9,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Show different types of ships and the number of ships of each type.
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C9,SUMX(A2:A9))
Level: easy
Question: For each type, how many ships are there?
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C9,SUMX(A2:A9))
Level: easy
Question: Show different types of ships and the average tonnage of ships of each type.
Formula: SUMMARIZE(HSTACK(C1,A1),AVERAGEX(E1))
Formula2: SUMMARIZE(HSTACK(C2:C9,A2:A9),AVERAGEX(E2:E9))
Level: medium
Question: For each type, what is the average tonnage?
Formula: SUMMARIZE(C1,AVERAGEX(E1))
Formula2: SUMMARIZE(C2:C9,AVERAGEX(E2:E9))
Level: easy
Question: How many ships in total?
Formula: SUM(A1)
Formula2: SUM(A2:A9)
Level: easy
Question: The number of ships.
Formula: SUM(A1)
Formula2: SUM(A2:A9)
Level: easy
Question: The tonnage from the least to most for each ship id and name.
Formula: SORT(SUMMARIZE(HSTACK(A1,B1),SUMX(E1)), 3, 1)
Formula2: SORT(SUMMARIZE(HSTACK(A2:A9,B2:B9),SUMX(E2:E9)), 3, 1)
Level: hard
Question: The ship ids, types and nationalities.
Formula: UNIQUE(HSTACK(C1,D1,A1))
Formula2: UNIQUE(HSTACK(C2:C9,D2:D9,A2:A9))
Level: easy
Question: Each ship's type and nationality
Formula: UNIQUE(HSTACK(C1,D1,A1))
Formula2: UNIQUE(HSTACK(C2:C9,D2:D9,A2:A9))
Level: easy
Question: The names and ids of non-American ships.
Formula: LET(query1,FILTER(A1:F1,D1<>"united states"),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:F9,D2:D9<>"united states"),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: names and ids of US and UK ships
Formula: LET(query1,FILTER(A1:F1,(D1="united states")+(D1="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:F9,(D2:D9="united states")+(D2:D9="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: US and UK ship names and ids
Formula: LET(query1,FILTER(A1:F1,(D1="united states")+(D1="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:F9,(D2:D9="united states")+(D2:D9="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: Name and id of the ship with highest tonnage.
Formula: LET(a,HSTACK(B1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A1,SUMX(E1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B9,A2:A9),b,A2:A9,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A9,SUMX(E2:E9)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: The number of ships for each type.
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C9,SUMX(A2:A9))
Level: easy
Question: What is the mean tonnage for each type?
Formula: SUMMARIZE(C1,AVERAGEX(E1))
Formula2: SUMMARIZE(C2:C9,AVERAGEX(E2:E9))
Level: easy
Question: What is the number of ships?
Formula: SUM(A1)
Formula2: SUM(A2:A9)
Level: easy
Question: The type and nationality for each ship.
Formula: UNIQUE(HSTACK(C1,D1,A1))
Formula2: UNIQUE(HSTACK(C2:C9,D2:D9,A2:A9))
Level: easy
Question: What are the names and ids of the ships from united states or united kingdom?
Formula: LET(query1,FILTER(A1:F1,(D1="united states")+(D1="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:F9,(D2:D9="united states")+(D2:D9="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: What are the names and ship ids for those from the US and the UK?
Formula: LET(query1,FILTER(A1:F1,(D1="united states")+(D1="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Formula2: LET(query1,FILTER(A2:F9,(D2:D9="united states")+(D2:D9="united kingdom")),UNIQUE(CHOOSECOLS(query1,2,1)))
Level: hard
Question: Name and id of the ship with greatest tonnage.
Formula: LET(a,HSTACK(B1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A1,SUMX(E1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B9,A2:A9),b,A2:A9,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A9,SUMX(E2:E9)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: The number of ships.
Formula: SUM(A1)
Formula2: SUM(A2:A9)
Level: easy