Table:
0
A
B
C
D
E
1
artist id
name
country
year join
age
2
1
Vijay Singh
Fiji
1/1/1998
45
3
2
John Daly
United States
1/1/1991
46
4
3
Paul Azinger
United States
1/1/1993
47
5
4
Jeff Sluman
United States
1/1/1988
57
6
5
Mark Brooks
United States
1/1/1996
48
7
6
Nick Price
Zimbabwe
1/1/1994
48
8
7
Larry Nelson
United States
1/1/1981
50

Questions and formulas:
Question: How many artists do we have?
Formula: SUM(A1)
Formula2: SUM(A2:A8)
Level: easy
Question: Count the number of artists.
Formula: SUM(A1)
Formula2: SUM(A2:A8)
Level: easy
Question: Show all artist name, age, and country ordered by the yeared they joined.
Formula: SORT(SUMMARIZE(HSTACK(A1,B1,C1,D1),SUMX(E1)), 4, 1)
Formula2: SORT(SUMMARIZE(HSTACK(A2:A8,B2:B8,C2:C8,D2:D8),SUMX(E2:E8)), 4, 1)
Level: hard
Question: What are all distinct country for artists?
Formula: UNIQUE(C1)
Formula2: UNIQUE(C2:C8)
Level: easy
Question: Return the different countries for artists.
Formula: UNIQUE(C1)
Formula2: UNIQUE(C2:C8)
Level: easy
Question: What are the names and year of joining for artists that do not have the country "United States"?
Formula: CHOOSE({1,2},FILTER(B1,C1<>"United States"),FILTER(D1,C1<>"United States"))
Formula2: CHOOSE({1,2},FILTER(B2:B8,C2:C8<>"United States"),FILTER(D2:D8,C2:C8<>"United States"))
Level: medium
Question: How many artists are above age 46 and joined after 1990?
Formula: ROWS(FILTER(A1,(E1>46)*(D1>1990)))
Formula2: ROWS(FILTER(A2:A8,(E2:E8>46)*(D2:D8>1990)))
Level: easy
Question: Count the number of artists who are older than 46 and joined after 1990.
Formula: ROWS(FILTER(A1,(E1>46)*(D1>1990)))
Formula2: ROWS(FILTER(A2:A8,(E2:E8>46)*(D2:D8>1990)))
Level: easy
Question: How many artists are there?
Formula: SUM(A1)
Formula2: SUM(A2:A8)
Level: easy
Question: Where does each artist come from?
Formula: UNIQUE(HSTACK(C1,A1))
Formula2: UNIQUE(HSTACK(C2:C8,A2:A8))
Level: easy
Question: countries and artist IDs
Formula: UNIQUE(HSTACK(C1,A1))
Formula2: UNIQUE(HSTACK(C2:C8,A2:A8))
Level: easy
Question: ids, names and joining years of all artists except those from USA
Formula: LET(query1,FILTER(A1:E1,C1<>"united states"),UNIQUE(CHOOSECOLS(query1,2,4,1)))
Formula2: LET(query1,FILTER(A2:E8,C2:C8<>"united states"),UNIQUE(CHOOSECOLS(query1,2,4,1)))
Level: hard
Question: How many 46 year old artists have joined since 1990?
Formula: LET(query1,LET(query1,FILTER(A1:E1,Year(D1)>=1990),SUMMARIZE(CHOOSECOLS(query1,1),COUNTX(CHOOSECOLS(query1,1)),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,3)=46))
Formula2: LET(query1,LET(query1,FILTER(A2:E8,Year(D1)>=1990),SUMMARIZE(CHOOSECOLS(query1,1),COUNTX(CHOOSECOLS(query1,1)),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,3)=46))
Level: hard
Question: The number of artists who are older than 46 and joined after 1990,
Formula: SUM(LET(a,A1,b,A1,c,INDEX(LET(query1,LET(query1,FILTER(A1:E1,Year(D1)>1990),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)>46)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: SUM(LET(a,A2:A8,b,A2:A8,c,INDEX(LET(query1,LET(query1,FILTER(A2:A8:E1,Year(D1)>1990),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)>46)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many artists?
Formula: SUM(A1)
Formula2: SUM(A2:A8)
Level: easy
Question: the country and artist id.
Formula: UNIQUE(HSTACK(C1,A1))
Formula2: UNIQUE(HSTACK(C2:C8,A2:A8))
Level: easy
Question: the id, name and joining year of the artist who is not from US.
Formula: LET(a,HSTACK(A1,B1,D1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1<>"united states"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A8,B2:B8,D2:D8),b,A2:A8,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:A8:E1,C2:C8<>"united states"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many artists aged 46 and joined after 1990?
Formula: SUM(LET(a,A1,b,A1,c,INDEX(LET(query1,LET(query1,FILTER(A1:E1,Year(D1)>1990),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=46)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: SUM(LET(a,A2:A8,b,A2:A8,c,INDEX(LET(query1,LET(query1,FILTER(A2:A8:E1,Year(D1)>1990),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=46)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many artists?
Formula: SUM(A1)
Formula2: SUM(A2:A8)
Level: easy