Table:
0
A
B
C
D
E
F
1
song id
artist name
file size
duration
formats
files
2
1
Shrikanta
3.78 MB
3:45
mp4
3
2
Prity
4.12 MB
2:56
mp3
4
3
Farida
3.69 MB
4:12
mp4
5
4
Enrique
4.58 MB
5:23
mp4
6
5
Michel
5.10 MB
4:34
mp3
7
6
Topu
4.10 MB
4:30
mp4

Questions and formulas:
Question: What is the id of the longest song?
Formula: LET(a,SORTBY(A1,D1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(A2:A7,D2:D7,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Find the id of the song that lasts the longest.
Formula: LET(a,SORTBY(A1,D1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(A2:A7,D2:D7,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: What are the id of songs whose format is mp3.
Formula: FILTER(A1,E1="mp3")
Formula2: FILTER(A2:A7,E2:E7="mp3")
Level: easy
Question: What are the id of all the files in mp3 format?
Formula: FILTER(A1,E1="mp3")
Formula2: FILTER(A2:A7,E2:E7="mp3")
Level: easy
Question: What is the most popular file format?
Formula: TAKE(SORT(SUMMARIZE(E1,DCOUNTX(F1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E7,DCOUNTX(F2:F7)), 2, -1), 1)
Level: hard
Question: Find the format that is used by the most files
Formula: TAKE(SORT(SUMMARIZE(E1,DCOUNTX(F1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E7,DCOUNTX(F2:F7)), 2, -1), 1)
Level: hard
Question: For each format, return the number of artists in that format
Formula: SUMMARIZE(E1,DCOUNTX(B1))
Formula2: SUMMARIZE(E2:E7,DCOUNTX(B2:B7))
Level: easy
Question: How many songs were released for each format?
Formula: SUMMARIZE(E1,SUMX(A1))
Formula2: SUMMARIZE(E2:E7,SUMX(A2:A7))
Level: easy
Question: Number of artists using each format
Formula: SUMMARIZE(E1,DCOUNTX(B1))
Formula2: SUMMARIZE(E2:E7,DCOUNTX(B2:B7))
Level: easy
Question: the number of songs recorded in different formats
Formula: SUMMARIZE(E1,DCOUNTX(A1))
Formula2: SUMMARIZE(E2:E7,DCOUNTX(A2:A7))
Level: easy
Question: mp3 song ids
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="mp3"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,E2:E7="mp3"),1))
Level: medium
Question: mp3 format files and songs
Formula: LET(query1,FILTER(A1:F1,E1="mp3"),UNIQUE(CHOOSECOLS(query1,1,6)))
Formula2: LET(query1,FILTER(A2:F7,E2:E7="mp3"),UNIQUE(CHOOSECOLS(query1,1,6)))
Level: hard
Question: The id of the longest song.
Formula: LET(a,A1,b,A1,c,CHOOSECOLS(TAKE(SORT(UNIQUE(HSTACK(A1,D1)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,A2:A7,b,A2:A7,c,CHOOSECOLS(TAKE(SORT(UNIQUE(HSTACK(A2:A7,D2:D7)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: The longest song.
Formula: TAKE(SORT(UNIQUE(HSTACK(A1,D1)), 2, -1), 1)
Formula2: TAKE(SORT(UNIQUE(HSTACK(A2:A7,D2:D7)), 2, -1), 1)
Level: hard
Question: The ids of mp3 songs
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="mp3"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F7,E2:E7="mp3"),1))
Level: medium
Question: the files and songs in mp3 format.
Formula: LET(query1,FILTER(A1:F1,E1="mp3"),UNIQUE(CHOOSECOLS(query1,1,6)))
Formula2: LET(query1,FILTER(A2:F7,E2:E7="mp3"),UNIQUE(CHOOSECOLS(query1,1,6)))
Level: hard
Question: the format used by the most files.
Formula: TAKE(SORT(SUMMARIZE(E1,DCOUNTX(F1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(E2:E7,DCOUNTX(F2:F7)), 2, -1), 1)
Level: hard
Question: How many artists in each format?
Formula: SUMMARIZE(E1,DCOUNTX(B1))
Formula2: SUMMARIZE(E2:E7,DCOUNTX(B2:B7))
Level: easy