Table:
0
A
B
C
D
E
F
G
H
1
document id
document type code
project id
document date
document name
document description
other details
product id
2
29
CV
30
8/28/2004 6:59
Review on UK files
3
42
BK
105
12/27/2012 19:09
Review on Canadian files
4
57
CV
195
10/22/1980 14:17
Review on French files
5
121
BK
105
11/29/1981 10:23
Review on USA files
6
181
PP
105
6/17/1970 14:03
Chapter on private files
7
192
PP
134
1/26/2013 15:15
Book on USA files
8
226
BK
30
7/8/1991 8:49
Review on UK files
9
227
BK
30
3/6/1970 7:34
Deontae files
10
240
BK
105
6/9/1971 19:03
Winona Book
11
300
FM
35
9/26/2007 2:39
Trenton Presentation
12
309
BK
35
10/15/1978 10:33
Noel CV
13
318
PP
134
1/30/1970 10:53
King Book
14
367
CV
134
8/24/1983 17:10
Jevon Paper
15
371
PP
105
5/6/1976 12:56
Katheryn statement
16
383
PP
35
10/28/2005 3:17
Review on UK files

Questions and formulas:
Question: Show the number of documents.
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: Count the number of documents.
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.
Formula: LET(query1,FILTER(A1:H1,(E1="king book")+(E1="noel cv")),UNIQUE(CHOOSECOLS(query1,2,5,6,1)))
Formula2: LET(query1,FILTER(A2:H16,(E2:E16="king book")+(E2:E16="noel cv")),UNIQUE(CHOOSECOLS(query1,2,5,6,1)))
Level: hard
Question: Show the ids and names of all documents.
Formula: CHOOSE({1,2},A1,E1)
Formula2: CHOOSE({1,2},A2:A16,E2:E16)
Level: easy
Question: What are the ids and names for each of the documents?
Formula: CHOOSE({1,2},A1,E1)
Formula2: CHOOSE({1,2},A2:A16,E2:E16)
Level: easy
Question: Find names and ids of all documents with document type code BK.
Formula: CHOOSE({1,2},FILTER(E1,B1="BK"),FILTER(A1,B1="BK"))
Formula2: CHOOSE({1,2},FILTER(E2:E16,B2:B16="BK"),FILTER(A2:A16,B2:B16="BK"))
Level: medium
Question: What are the names and ids of documents that have the type code BK?
Formula: CHOOSE({1,2},FILTER(E1,B1="BK"),FILTER(A1,B1="BK"))
Formula2: CHOOSE({1,2},FILTER(E2:E16,B2:B16="BK"),FILTER(A2:A16,B2:B16="BK"))
Level: medium
Question: How many documents are with document type code BK for each product id?
Formula: LET(query1,FILTER(A1:H1,B1="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:H16,B2:B16="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: Count the number of documents with the type code BK that correspond to each product id.
Formula: LET(query1,FILTER(A1:H1,B1="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:H16,B2:B16="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: Show project ids and the number of documents in each project.
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C16,SUMX(A2:A16))
Level: easy
Question: How many documents correspond with each project id?
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C16,SUMX(A2:A16))
Level: easy
Question: What is the project id with least number of documents?
Formula: TAKE(SORT(SUMMARIZE(C1,SUMX(A1)), 2, 1), 1)
Formula2: TAKE(SORT(SUMMARIZE(C2:C16,SUMX(A2:A16)), 2, 1), 1)
Level: hard
Question: What are project ids of projects that have 2 or more corresponding documents?
Formula: LET(query1,SUMMARIZE(C1,),FILTER(query1,CHOOSECOLS(query1,2)>=2))
Formula2: LET(query1,SUMMARIZE(C2:C16,),FILTER(query1,CHOOSECOLS(query1,2)>=2))
Level: hard
Question: List document type codes and the number of documents in each code.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: What is the document type code with most number of documents?
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 2, -1), 1)
Level: hard
Question: Show the document type code with fewer than 3 documents.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)<3))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)<3))
Level: hard
Question: What are the codes corresponding to document types for which there are less than 3 documents?
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)<3))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)<3))
Level: hard
Question: How many documents are there?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: The type, description and id of king book or noel cv.
Formula: LET(query1,FILTER(A1:H1,(E1="king book")+(E1="noel cv")),UNIQUE(CHOOSECOLS(query1,2,6,1)))
Formula2: LET(query1,FILTER(A2:H16,(E2:E16="king book")+(E2:E16="noel cv")),UNIQUE(CHOOSECOLS(query1,2,6,1)))
Level: hard
Question: What are the document ids and names?
Formula: UNIQUE(HSTACK(A1,E1))
Formula2: UNIQUE(HSTACK(A2:A16,E2:E16))
Level: easy
Question: The document ids and names.
Formula: UNIQUE(HSTACK(A1,E1))
Formula2: UNIQUE(HSTACK(A2:A16,E2:E16))
Level: easy
Question: the bk document name and id.
Formula: LET(query1,FILTER(A1:H1,B1="bk"),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:H16,B2:B16="bk"),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: What are bk's document names and ids?
Formula: LET(query1,FILTER(A1:H1,B1="bk"),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:H16,B2:B16="bk"),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: The number of bk documents for each product.
Formula: LET(query1,FILTER(A1:H1,B1="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:H16,B2:B16="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: The number of bk documents for each product.
Formula: LET(query1,FILTER(A1:H1,B1="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Formula2: LET(query1,FILTER(A2:H16,B2:B16="bk"),SUMMARIZE(CHOOSECOLS(query1,8),SUMX(CHOOSECOLS(query1,1))))
Level: hard
Question: How many documents does each project have?
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C16,SUMX(A2:A16))
Level: easy
Question: The number of documents of each project.
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C16,SUMX(A2:A16))
Level: easy
Question: The project id with the fewest number of documents.
Formula: TAKE(SORT(SUMMARIZE(C1,SUMX(A1)), 2, 1), 1)
Formula2: TAKE(SORT(SUMMARIZE(C2:C16,SUMX(A2:A16)), 2, 1), 1)
Level: hard
Question: Show all projects with 2 or more documents.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(C2:C16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: Compare the number of documents among document types.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Number of documents for the type code with the most documents.
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 2, -1), 1)
Level: hard
Question: Type codes with three or fewer documents
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)<=3))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)<=3))
Level: hard
Question: Document types having less than 3 documents.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)<3))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)<3))
Level: hard
Question: How many documents?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: What are the document names and ids of the bk?
Formula: LET(query1,FILTER(A1:H1,B1="bk"),UNIQUE(CHOOSECOLS(query1,5,1)))
Formula2: LET(query1,FILTER(A2:H16,B2:B16="bk"),UNIQUE(CHOOSECOLS(query1,5,1)))
Level: hard
Question: How many documents for each project?
Formula: SUMMARIZE(C1,SUMX(A1))
Formula2: SUMMARIZE(C2:C16,SUMX(A2:A16))
Level: easy
Question: The project with at least 2 documents.
Formula: LET(query1,SUMMARIZE(C1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(C2:C16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: The type codes that have no more than 3 documents.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)<=3))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)<=3))
Level: hard
Question: Number of documents in total
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: How many documents?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy