Table:
0
A
B
C
D
E
F
G
H
1
pilot id
pilot name
rank
age
nationality
position
join year
team
2
1
Patrick O'Bryant
13
33
United States
Center Team
1/1/2009
Bradley
3
2
Jermaine O'Neal
6
40
United States
Forward-Center Team
1/1/2008
Eau Claire High School
4
3
Dan O'Sullivan
45
37
United States
Center Team
1/1/1999
Fordham
5
4
Charles Oakley
34
22
United Kindom
Forward Team
1/1/2001
Virginia Union
6
5
Hakeem Olajuwon
34
32
Nigeria
Center Team
1/10/2010
Houston

Questions and formulas:
Question: List the names of pilots in ascending order of rank.
Formula: SORT(SUMMARIZE(B1,SUMX(C1)), 2, 1)
Formula2: SORT(SUMMARIZE(B2:B6,SUMX(C2:C6)), 2, 1)
Level: medium
Question: Show each nationality and the number of pilots of each nationality.
Formula: SUMMARIZE(E1,SUMX(A1))
Formula2: SUMMARIZE(E2:E6,SUMX(A2:A6))
Level: easy
Question: Show the position and number of pilot in each position.
Formula: SUMMARIZE(F1,SUMX(A1))
Formula2: SUMMARIZE(F2:F6,SUMX(A2:A6))
Level: easy
Question: List the position with at least two pilot.
Formula: LET(query1,SUMMARIZE(F1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(F2:F6,SUMX(A2:A6)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: What is the name of the oldest pilot?
Formula: LET(a,HSTACK(B1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A1,SUMX(D1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B6,A2:A6),b,A2:A6,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A6,SUMX(D2:D6)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Which team owns most pilots?
Formula: TAKE(SORT(SUMMARIZE(H1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(H2:H6,SUMX(A2:A6)), 2, -1), 1)
Level: hard
Question: Show the ages of the pilots named "Patrick O'Bryant" or "Charles Oakley".
Formula: SUM(FILTER(D1, (B1="charles oakley")+(B1="patrick o'bryant")))
Formula2: SUM(FILTER(D2:D6, (B2:B6="charles oakley")+(B2:B6="patrick o'bryant")))
Level: easy
Question: List the distinct pilots in ascending alphabetical order by name.
Formula: SORT(UNIQUE(HSTACK(B1,A1)), 1, 1)
Formula2: SORT(UNIQUE(HSTACK(B2:B6,A2:A6)), 1, 1)
Level: medium
Question: What is the maximum age for each nationality that has more than 3 pilots listed?
Formula: LET(query1,SUMMARIZE(E1,MAXX(D1)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Formula2: LET(query1,SUMMARIZE(E2:E6,MAXX(D2:D6)),FILTER(query1,CHOOSECOLS(query1,3)>3))
Level: hard
Question: Which nationality has the most pilots?
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E6,SUMX(A2:A6)), 2, -1), 1)
Level: hard
Question: Find the nationality that the most pilots live in.
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E6,SUMX(A2:A6)), 2, -1), 1)
Level: hard
Question: Show all nationality with only 1 pilot.
Formula: LET(query1,SUMMARIZE(E1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)=1))
Formula2: LET(query1,SUMMARIZE(E2:E6,SUMX(A2:A6)),FILTER(query1,CHOOSECOLS(query1,3)=1))
Level: hard
Question: Which nationality is the most common among pilots?
Formula: TAKE(SORT(SUMMARIZE(E1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E6,SUMX(A2:A6)), 2, -1), 1)
Level: hard
Question: select all pilots from United States that have an age higher than 22
Formula: LET(query1,LET(query1,FILTER(A1:H1,E1="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Formula2: LET(query1,LET(query1,FILTER(A2:H6,E2:E6="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Level: hard
Question: list all the pilots from United States with an age of over 22
Formula: LET(query1,LET(query1,FILTER(A1:H1,E1="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Formula2: LET(query1,LET(query1,FILTER(A2:H6,E2:E6="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Level: hard
Question: show all pilots from united states that has age over 22
Formula: LET(query1,LET(query1,FILTER(A1:H1,E1="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Formula2: LET(query1,LET(query1,FILTER(A2:H6,E2:E6="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Level: hard
Question: list all pilots from united states with age > 22
Formula: LET(query1,LET(query1,FILTER(A1:H1,E1="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Formula2: LET(query1,LET(query1,FILTER(A2:H6,E2:E6="united states"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)>22))
Level: hard
Question: list all pilot whose name ="Charles Oakley"
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,B1="charles oakley"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,B2:B6="charles oakley"),1))
Level: medium
Question: get all pilots with name "Charles Oakley"
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,B1="charles oakley"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,B2:B6="charles oakley"),1))
Level: medium
Question: Pilots that have "Charles Oakley" as name
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,B1="charles oakley"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,B2:B6="charles oakley"),1))
Level: medium
Question: How many pilots are there?
Formula: SUM(A1)
Formula2: SUM(A2:A6)
Level: easy
Question: What are the positions and teams of pilots?
Formula: CHOOSE({1,2},F1,H1)
Formula2: CHOOSE({1,2},F2:F6,H2:H6)
Level: easy
Question: List the distinct positions of pilots older than 30.
Formula: UNIQUE(FILTER(F1,D1>30))
Formula2: UNIQUE(FILTER(F2:F6,D2:D6>30))
Level: easy
Question: Show the names of pilots from team "Bradley" or "Fordham".
Formula: FILTER(B1,(H1="Bradley")+(H1="Fordham"))
Formula2: FILTER(B2:B6,(H2:H6="Bradley")+(H2:H6="Fordham"))
Level: easy
Question: What is the joined year of the pilot of the highest rank?
Formula: LET(a,SORTBY(G1,C1,1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(G2:G6,C2:C6,1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: the number of pilots
Formula: SUM(A1)
Formula2: SUM(A2:A6)
Level: easy
Question: the positions, teams and pilot ids.
Formula: UNIQUE(HSTACK(F1,H1,A1))
Formula2: UNIQUE(HSTACK(F2:F6,H2:H6,A2:A6))
Level: easy
Question: Positions and ids of pilots over 30 years old
Formula: LET(query1,SUMMARIZE(HSTACK(F1,A1),SUMX(D1)),FILTER(query1,CHOOSECOLS(query1,3)>30))
Formula2: LET(query1,SUMMARIZE(HSTACK(F2:F6,A2:A6),SUMX(D2:D6)),FILTER(query1,CHOOSECOLS(query1,3)>30))
Level: hard
Question: bradley or fordham pilots' names
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,(H1="bradley")+(H1="fordham")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,(H2:H6="bradley")+(H2:H6="fordham")),2))
Level: medium
Question: Joining year and id for highest-ranked pilot
Formula: TAKE(SORT(SUMMARIZE(HSTACK(G1,A1),SUMX(C1)), 3, 1), 1)
Formula2: TAKE(SORT(SUMMARIZE(HSTACK(G2:G6,A2:A6),SUMX(C2:C6)), 3, 1), 1)
Level: hard
Question: the names of pilots from bradley or fordham
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,(H1="bradley")+(H1="fordham")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,(H2:H6="bradley")+(H2:H6="fordham")),2))
Level: medium
Question: The join year and id for the pilot of highest rank.
Formula: LET(a,HSTACK(G1,A1),b,A1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A1,SUMX(C1)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(G2:G6,A2:A6),b,A2:A6,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A6,SUMX(C2:C6)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard