Table:
0
A
B
C
D
1
paragraph id
document id
paragraph text
other details
2
7
2394
Korea
3
9
3
Somalia
4
65
50123
Palestinian Territory
5
241
651512
Jersey
6
3708
33930
UK
7
9946
385906526
Fiji
8
16615
80
Japan
9
1104059
3830
Senegal
10
243399026
651512
Indonesia
11
280120913
2394
Ukraine
12
510442723
2394
Korea
13
571212310
16514113
Brazil
14
608931827
80
Micronesia
15
765713812
16514113
Ireland
16
946335436
3540024
Papua New Guinea

Questions and formulas:
Question: How many paragraphs in total?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: Count the number of paragraphs.
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: Show paragraph details for paragraph with text 'Korea'.
Formula: LET(query1,FILTER(A1:D1,C1="korea"),UNIQUE(CHOOSECOLS(query1,1,4)))
Formula2: LET(query1,FILTER(A2:D16,C2:C16="korea"),UNIQUE(CHOOSECOLS(query1,1,4)))
Level: hard
Question: Show all document ids and the number of paragraphs in each document. Order by document id.
Formula: SORT(SUMMARIZE(B1,SUMX(A1)), 1, 1)
Formula2: SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 1, 1)
Level: medium
Question: List all document ids with at least two paragraphs.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: What are the ids of documents that have 2 or more paragraphs?
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: What is the document id with least number of paragraphs?
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: What is the document id with 1 to 2 paragraphs?
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,(CHOOSECOLS(query1,3)>=1)*(CHOOSECOLS(query1,3)<=2)))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,(CHOOSECOLS(query1,3)>=1)*(CHOOSECOLS(query1,3)<=2)))
Level: hard
Question: Give the ids of documents that have between one and two paragraphs.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,(CHOOSECOLS(query1,3)>=1)*(CHOOSECOLS(query1,3)<=2)))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,(CHOOSECOLS(query1,3)>=1)*(CHOOSECOLS(query1,3)<=2)))
Level: hard
Question: the number of paragraphs.
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: What is the number of paragraphs?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: the id and other details of paragraph texted with Korea
Formula: LET(query1,FILTER(A1:D1,C1="korea"),UNIQUE(CHOOSECOLS(query1,1,4)))
Formula2: LET(query1,FILTER(A2:D16,C2:C16="korea"),UNIQUE(CHOOSECOLS(query1,1,4)))
Level: hard
Question: The documents which contain at least two paragraphs of text.
Formula: LET(query1,SUMMARIZE(B1,DCOUNTX(C1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,DCOUNTX(C2:C16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: Which document(s) has at least two paragraphs?
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: The documents that have the least number of paragraphs.
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: How many documents are there which contain only one or two paragraphs?
Formula: SUM(FILTER(B1, (A1=1)+(A1=2)))
Formula2: SUM(FILTER(B2:B16, (A2:A16=1)+(A2:A16=2)))
Level: easy
Question: the documents which have 1 or 2 paragraphs.
Formula: LET(query1,FILTER(A1:D1,(A1=1)+(A1=2)),UNIQUE(CHOOSECOLS(query1,1,2)))
Formula2: LET(query1,FILTER(A2:D16,(A2:A16=1)+(A2:A16=2)),UNIQUE(CHOOSECOLS(query1,1,2)))
Level: hard
Question: How many paragraphs?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: the documents with at least two paragraphs.
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: Which document has at least 2 paragraphs?
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Formula2: LET(query1,SUMMARIZE(B2:B16,SUMX(A2:A16)),FILTER(query1,CHOOSECOLS(query1,3)>=2))
Level: hard
Question: The documents with the least paragraphs.
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: How many documents with 1 or 2 paragraphs?
Formula: SUM(FILTER(B1, (A1=1)+(A1=2)))
Formula2: SUM(FILTER(B2:B16, (A2:A16=1)+(A2:A16=2)))
Level: easy
Question: the document having 1 or 2 paragraphs.
Formula: LET(query1,FILTER(A1:D1,(A1=1)+(A1=2)),UNIQUE(CHOOSECOLS(query1,1,2)))
Formula2: LET(query1,FILTER(A2:D16,(A2:A16=1)+(A2:A16=2)),UNIQUE(CHOOSECOLS(query1,1,2)))
Level: hard
Question: The other details and ids of paragraphs whose text is "Korea".
Formula: LET(query1,FILTER(A1:D1,C1="korea"),UNIQUE(CHOOSECOLS(query1,4,1)))
Formula2: LET(query1,FILTER(A2:D16,C2:C16="korea"),UNIQUE(CHOOSECOLS(query1,4,1)))
Level: hard