Table:
0
A
B
C
D
E
1
document id
template id
document name
document description
other details
2
0
7
Introduction of OS
n
3
1
25
Understanding DB
y
4
3
6
Summer Show
u
5
76
20
Robbin CV
y
6
80
14
Welcome to NY
h
7
82
11
Data base
w
8
2394
10
Customer reviews
y
9
3830
14
Do not panic
k
10
33930
1
How Google people work
z
11
50123
22
Learning French
r
12
651512
21
How to write a CV
f
13
801801
4
How to read a book
w
14
3540024
8
Palm reading
y
15
16514113
25
A history of Arts
h
16
385906526
11
About Korea
b

Questions and formulas:
Question: How many documents do we have?
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 document IDs, document names, and document descriptions for all documents.
Formula: CHOOSE({1,2,3},A1,C1,D1)
Formula2: CHOOSE({1,2,3},A2:A16,C2:C16,D2:D16)
Level: easy
Question: What are the ids, names, and descriptions for all documents?
Formula: CHOOSE({1,2,3},A1,C1,D1)
Formula2: CHOOSE({1,2,3},A2:A16,C2:C16,D2:D16)
Level: easy
Question: What is the document name and template id for document with description with the letter 'w' in it?
Formula: CHOOSE({1,2},FILTER(C1,IFERROR(SEARCH("w",D1),0)),FILTER(B1,IFERROR(SEARCH("w",D1),0)))
Formula2: CHOOSE({1,2},FILTER(C2:C16,IFERROR(SEARCH("w",D2:D16),0)),FILTER(B2:B16,IFERROR(SEARCH("w",D2:D16),0)))
Level: hard
Question: What is the document id, template id and description for document named "Robbin CV"?
Formula: CHOOSE({1,2,3},FILTER(A1,C1="Robbin CV"),FILTER(B1,C1="Robbin CV"),FILTER(D1,C1="Robbin CV"))
Formula2: CHOOSE({1,2,3},FILTER(A2:A16,C2:C16="Robbin CV"),FILTER(B2:B16,C2:C16="Robbin CV"),FILTER(D2:D16,C2:C16="Robbin CV"))
Level: hard
Question: Return the document id, template id, and description for the document with the name Robbin CV.
Formula: CHOOSE({1,2,3},FILTER(A1,C1="Robbin CV"),FILTER(B1,C1="Robbin CV"),FILTER(D1,C1="Robbin CV"))
Formula2: CHOOSE({1,2,3},FILTER(A2:A16,C2:C16="Robbin CV"),FILTER(B2:B16,C2:C16="Robbin CV"),FILTER(D2:D16,C2:C16="Robbin CV"))
Level: hard
Question: How many different templates do all document use?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: Count the number of different templates used for documents.
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: Show all template ids and number of documents using each template.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: how many times were each of different template used for documents, ?
Formula: SUMMARIZE(A1,DCOUNTX(B1))
Formula2: SUMMARIZE(A2:A16,DCOUNTX(B2:B16))
Level: easy
Question: the number of documents.
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: The ids, names and descriptions of the documents.
Formula: UNIQUE(HSTACK(A1,C1,D1))
Formula2: UNIQUE(HSTACK(A2:A16,C2:C16,D2:D16))
Level: easy
Question: the ids, names and descriptions of all documents
Formula: UNIQUE(HSTACK(A1,C1,D1))
Formula2: UNIQUE(HSTACK(A2:A16,C2:C16,D2:D16))
Level: easy
Question: the names and ids of documents with description w and their template ids
Formula: LET(query1,FILTER(A1:E1,D1="w"),UNIQUE(CHOOSECOLS(query1,3,2,1)))
Formula2: LET(query1,FILTER(A2:E16,D2:D16="w"),UNIQUE(CHOOSECOLS(query1,3,2,1)))
Level: hard
Question: The names, ids and templates of documents that have w as their description.
Formula: LET(a,HSTACK(C1,A1,B1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="w"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(C2:C16,A216,B2:B16),b,A2:A16,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="w"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: the template id, document id and description of robbin cv
Formula: LET(query1,FILTER(A1:E1,C1="robbin cv"),UNIQUE(CHOOSECOLS(query1,1,2,4)))
Formula2: LET(query1,FILTER(A2:E16,C2:C16="robbin cv"),UNIQUE(CHOOSECOLS(query1,1,2,4)))
Level: hard
Question: What's the template id, document id and description of robbin cv?
Formula: LET(query1,FILTER(A1:E1,C1="robbin cv"),UNIQUE(CHOOSECOLS(query1,1,2,4)))
Formula2: LET(query1,FILTER(A2:E16,C2:C16="robbin cv"),UNIQUE(CHOOSECOLS(query1,1,2,4)))
Level: hard
Question: Number of templates within each document.
Formula: SUMMARIZE(A1,SUMX(B1))
Formula2: SUMMARIZE(A2:A16,SUMX(B2:B16))
Level: easy
Question: How many templates are there, and how many documents?
Formula: HSTACK(SUM(B1), SUM(A1))
Formula2: HSTACK(SUM(B2:B16), SUM(A2:A16))
Level: medium
Question: How many documents are there for each template?
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Number of documents which use same templates.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: The names, ids and templates of documents whose description is w.
Formula: LET(a,HSTACK(C1,A1,B1),b,A1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="w"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(C2:C16,A2:A16,B2:B16),b,A2:A16,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="w"),1)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: the number of templates used by each document
Formula: SUMMARIZE(A1,SUMX(B1))
Formula2: SUMMARIZE(A2:A16,SUMX(B2:B16))
Level: easy
Question: How many templates and documents respectively?
Formula: HSTACK(SUM(B1), SUM(A1))
Formula2: HSTACK(SUM(B2:B16), SUM(A2:A16))
Level: medium
Question: How many documents for each template?
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: the number of documents using same templates
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy