Table:
0
A
B
C
D
E
F
G
1
room id
room name
beds
bed type
max occupancy
base price
decor
2
1
Recluse and defiance 
2
king
3
123
modern
3
2
Great
2
queen
5
243
normal
4
3
Great
2
king
5
243
traditional

Questions and formulas:
Question: How many king beds are there?
Formula: SUM(FILTER(C1,D1="King"))
Formula2: SUM(FILTER(C2:C4,D2:D4="King"))
Level: easy
Question: Find the total number of king beds available.
Formula: SUM(FILTER(C1,D1="King"))
Formula2: SUM(FILTER(C2:C4,D2:D4="King"))
Level: easy
Question: What is the decor of room Recluse and defiance?
Formula: FILTER(G1,B1="Recluse and defiance")
Formula2: FILTER(G2:G4,B2:B4="Recluse and defiance")
Level: easy
Question: Return the decor of the room named "Recluse and defiance".
Formula: FILTER(G1,B1="Recluse and defiance")
Formula2: FILTER(G2:G4,B2:B4="Recluse and defiance")
Level: easy
Question: What is the average base price of different bed type? List bed type and average base price.
Formula: SUMMARIZE(D1,AVERAGEX(F1))
Formula2: SUMMARIZE(D2:D4,AVERAGEX(F2:F4))
Level: easy
Question: For each bed type, find the average base price of different bed type.
Formula: SUMMARIZE(D1,AVERAGEX(F1))
Formula2: SUMMARIZE(D2:D4,AVERAGEX(F2:F4))
Level: easy
Question: How many rooms are there?
Formula: SUM(A1)
Formula2: SUM(A2:A4)
Level: easy
Question: What is the total number of rooms available in this inn?
Formula: SUM(A1)
Formula2: SUM(A2:A4)
Level: easy
Question: Find the number of rooms for each bed type.
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D4,SUMX(A2:A4))
Level: easy
Question: What are the number of rooms for each bed type?
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D4,SUMX(A2:A4))
Level: easy
Question: Find the name of the room with the maximum occupancy.
Formula: LET(a,SORTBY(B1,E1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(B2:B4,E2:E4,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: Which room has the highest base price?
Formula: LET(a,SORTBY(CHOOSE({1,2},A1,B1),F1,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Formula2: LET(a,SORTBY(CHOOSE({1,2},A2:A4,B2:B4),F2:F4,-1),FILTER(a,SEQUENCE(ROWS(a))<=1))
Level: hard
Question: List the type of bed and name of all traditional rooms.
Formula: CHOOSE({1,2},FILTER(B1,G1="traditional"),FILTER(D1,G1="traditional"))
Formula2: CHOOSE({1,2},FILTER(B2:B4,G2:G4="traditional"),FILTER(D2:D4,G2:G4="traditional"))
Level: medium
Question: What are the bed type and name of all the rooms with traditional decor?
Formula: CHOOSE({1,2},FILTER(B1,G1="traditional"),FILTER(D1,G1="traditional"))
Formula2: CHOOSE({1,2},FILTER(B2:B4,G2:G4="traditional"),FILTER(D2:D4,G2:G4="traditional"))
Level: medium
Question: List the name of all rooms sorted by their prices.
Formula: SORTBY(B1,F1,1)
Formula2: SORTBY(B2:B4,F2:F4,1)
Level: easy
Question: Find the number of rooms with price higher than 120 for different decor.
Formula: LET(query1,SUMMARIZE(G1,SUMX(A1),SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Formula2: LET(query1,SUMMARIZE(G2:G4,SUMX(A2:A4),SUMX(F2:F4)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Level: hard
Question: How many rooms cost more than 120, for each different decor?
Formula: LET(query1,SUMMARIZE(G1,COUNTX(A1),SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Formula2: LET(query1,SUMMARIZE(G2:G4,COUNTX(A2:A4),SUMX(F2:F4)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Level: hard
Question: What is the average base price of rooms, for each bed type?
Formula: SUMMARIZE(HSTACK(A1,D1),AVERAGEX(F1))
Formula2: SUMMARIZE(HSTACK(A2:A4,D2:D4),AVERAGEX(F2:F4))
Level: medium
Question: List the name of rooms with king or queen bed.
Formula: FILTER(B1,(D1="King")+(D1="Queen"))
Formula2: FILTER(B2:B4,(D2:D4="King")+(D2:D4="Queen"))
Level: easy
Question: What are the names of rooms that have either king or queen bed?
Formula: FILTER(B1,(D1="King")+(D1="Queen"))
Formula2: FILTER(B2:B4,(D2:D4="King")+(D2:D4="Queen"))
Level: easy
Question: How many different types of beds are there?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D4))
Level: easy
Question: Find the number of distinct bed types available in this inn.
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D4))
Level: easy
Question: What are the name and id of the three highest priced rooms?
Formula: LET(a,SORTBY(CHOOSE({1,2},A1,B1),F1,-1),FILTER(a,SEQUENCE(ROWS(a))<=3))
Formula2: LET(a,SORTBY(CHOOSE({1,2},A2:A4,B2:B4),F2:F4,-1),FILTER(a,SEQUENCE(ROWS(a))<=3))
Level: hard
Question: Find the name of rooms whose base price is between 120 and 150.
Formula: FILTER(B1,(F1>=120)*(F1<=150))
Formula2: FILTER(B2:B4,(F2:F4>=120)*(F2:F4<=150))
Level: easy
Question: Total number of king beds.
Formula: SUMIFS(C1,D1,"king")
Formula2: SUMIFS(C2:C4,D2:D4,"king")
Level: easy
Question: How many king beds in total?
Formula: SUMIFS(C1,D1,"king")
Formula2: SUMIFS(C2:C4,D2:D4,"king")
Level: easy
Question: Show id and decor for recluse and defiance.
Formula: LET(query1,FILTER(A1:G1,B1="recluse and defiance"),UNIQUE(CHOOSECOLS(query1,7,1)))
Formula2: LET(query1,FILTER(A2:G4,B2:B4="recluse and defiance"),UNIQUE(CHOOSECOLS(query1,7,1)))
Level: hard
Question: Which decor does recluse and defiance have?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,B1="recluse and defiance"),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G4,B2:B4="recluse and defiance"),7))
Level: medium
Question: Average base prices of each bed type.
Formula: SUMMARIZE(D1,AVERAGEX(F1))
Formula2: SUMMARIZE(D2:D4,AVERAGEX(F2:F4))
Level: easy
Question: Total number of rooms.
Formula: SUM(A1)
Formula2: SUM(A2:A4)
Level: easy
Question: total number of rooms
Formula: SUM(A1)
Formula2: SUM(A2:A4)
Level: easy
Question: How many rooms under each bed type?
Formula: SUMMARIZE(D1,SUMX(A1))
Formula2: SUMMARIZE(D2:D4,SUMX(A2:A4))
Level: easy
Question: the number of rooms for different bed types
Formula: SUMMARIZE(D1,DCOUNTX(A1))
Formula2: SUMMARIZE(D2:D4,DCOUNTX(A2:A4))
Level: easy
Question: the name and id of the most occupied room.
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:B4,A2:A4),b,A2:A4,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(A2:A4,SUMX(E2:E4)), 2, -1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: The most expensive room's id.
Formula: TAKE(SORT(SUMMARIZE(A1,SUMX(F1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(A2:A4,SUMX(F2:F4)), 2, -1), 1)
Level: hard
Question: bed types, names and ids of traditional rooms
Formula: LET(query1,FILTER(A1:G1,G1="traditional"),UNIQUE(CHOOSECOLS(query1,4,2,1)))
Formula2: LET(query1,FILTER(A2:G4,G2:G4="traditional"),UNIQUE(CHOOSECOLS(query1,4,2,1)))
Level: hard
Question: How many rooms cost 120+ in different decors?
Formula: LET(query1,SUMMARIZE(G1,DCOUNTX(A1),SUMX(F1)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Formula2: LET(query1,SUMMARIZE(G2:G4,DCOUNTX(A2:A4),SUMX(F2:F4)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Level: hard
Question: Styles which more than 120 bedrooms are decorated in
Formula: LET(query1,SUMMARIZE(G1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Formula2: LET(query1,SUMMARIZE(G2:G4,SUMX(A2:A4)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Level: hard
Question: total number of beds for each different bed type
Formula: SUMMARIZE(D1,SUMX(C1))
Formula2: SUMMARIZE(D2:D4,SUMX(C2:C4))
Level: easy
Question: How many different bed types does the hotel have?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D4))
Level: easy
Question: Names and ids for 3 most expensive rooms.
Formula: TAKE(SORT(SUMMARIZE(HSTACK(A1,B1),SUMX(F1)), 3, -1), 3)
Formula2: TAKE(SORT(SUMMARIZE(HSTACK(A2:A4,B2:B4),SUMX(F2:F4)), 3, -1), 3)
Level: hard
Question: Names of rooms with a base price between 120 and 150.
Formula: LET(query1,SUMMARIZE(B1,SUMX(F1)),FILTER(query1,(CHOOSECOLS(query1,2)>=120)*(CHOOSECOLS(query1,2)<=150)))
Formula2: LET(query1,SUMMARIZE(B2:B4,SUMX(F2:F4)),FILTER(query1,(CHOOSECOLS(query1,2)>=120)*(CHOOSECOLS(query1,2)<=150)))
Level: hard
Question: The total number of king beds.
Formula: SUMIFS(C1,D1,"king")
Formula2: SUMIFS(C2:C4,D2:D4,"king")
Level: easy
Question: How many king beds?
Formula: SUMIFS(C1,D1,"king")
Formula2: SUMIFS(C2:C4,D2:D4,"king")
Level: easy
Question: Show the id and decor of recluse and defiance.
Formula: LET(query1,FILTER(A1:G1,B1="recluse and defiance"),UNIQUE(CHOOSECOLS(query1,7,1)))
Formula2: LET(query1,FILTER(A2:G4,B2:B4="recluse and defiance"),UNIQUE(CHOOSECOLS(query1,7,1)))
Level: hard
Question: The average base price of each bed type.
Formula: SUMMARIZE(D1,AVERAGEX(F1))
Formula2: SUMMARIZE(D2:D4,AVERAGEX(F2:F4))
Level: easy
Question: The number of rooms.
Formula: SUM(A1)
Formula2: SUM(A2:A4)
Level: easy
Question: How many different bed types does the inn offer?
Formula: ROWS(UNIQUE(D1))
Formula2: ROWS(UNIQUE(D2:D4))
Level: easy
Question: the number of rooms
Formula: SUM(A1)
Formula2: SUM(A2:A4)
Level: easy
Question: Bed types, names and ids of rooms decorated traditionally
Formula: LET(query1,FILTER(A1:G1,G1="traditional"),UNIQUE(CHOOSECOLS(query1,4,2,1)))
Formula2: LET(query1,FILTER(A2:G4,G2:G4="traditional"),UNIQUE(CHOOSECOLS(query1,4,2,1)))
Level: hard
Question: The decor in which over 120 rooms were decorated.
Formula: LET(query1,SUMMARIZE(G1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Formula2: LET(query1,SUMMARIZE(G2:G4,SUMX(A2:A4)),FILTER(query1,CHOOSECOLS(query1,3)>120))
Level: hard
Question: the total beds for different types
Formula: SUMMARIZE(D1,SUMX(C1))
Formula2: SUMMARIZE(D2:D4,SUMX(C2:C4))
Level: easy
Question: the name of room whose base price is between 120 and 150.
Formula: LET(query1,SUMMARIZE(B1,SUMX(F1)),FILTER(query1,(CHOOSECOLS(query1,2)>=120)*(CHOOSECOLS(query1,2)<=150)))
Formula2: LET(query1,SUMMARIZE(B2:B4,SUMX(F2:F4)),FILTER(query1,(CHOOSECOLS(query1,2)>=120)*(CHOOSECOLS(query1,2)<=150)))
Level: hard