Table:
0
A
B
C
D
E
F
G
1
id
name
date
bulgarian commander
latin commander
result
battle
2
1
Battle of Adrianople
14 April 1205
Kaloyan
Baldwin I
Bulgarian victory
3
2
Battle of Serres
June 1205
Kaloyan
Unknown
Bulgarian victory
4
3
Battle of Rusion
31 January 1206
Kaloyan
Thierry de Termond
Bulgarian victory
5
4
Battle of Rodosto
February 1206
Kaloyan
Unknown
Bulgarian victory
6
5
Battle of Messinopolis
4 September 1207
Unknown
Boniface of Montferrat
Bulgarian victory
7
6
Battle of Boruy
June 1205
Boril
Henry I
Bulgarian victory
8
7
Battle of Philippopolis
31 June 1208
Boril
Henry I
Latin victory
9
8
Siege of Constantinople
1235
Ivan Asen II
John of Brienne
Two Year Truce

Questions and formulas:
Question: List the name, date and result of each battle.
Formula: CHOOSE({1,2},B1,C1)
Formula2: CHOOSE({1,2},B2:B9,C2:C9)
Level: easy
Question: What are the name and results of the battles when the bulgarian commander is not 'Boril'
Formula: CHOOSE({1,2},FILTER(B1,D1<>"Boril"),FILTER(F1,D1<>"Boril"))
Formula2: CHOOSE({1,2},FILTER(B2:B9,D2:D9<>"Boril"),FILTER(F2:F9,D2:D9<>"Boril"))
Level: medium
Question: What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
Formula: FILTER(B1,(D1="Kaloyan")*(E1="Baldwin I"))
Formula2: FILTER(B2:B9,(D2:D9="Kaloyan")*(E2:E9="Baldwin I"))
Level: easy
Question: How many different results are there for the battles?
Formula: ROWS(UNIQUE(F1))
Formula2: ROWS(UNIQUE(F2:F9))
Level: easy
Question: The name, date and result of each battle.
Formula: UNIQUE(HSTACK(B1,C1,F1,G1))
Formula2: UNIQUE(HSTACK(B2:B9,C2:C9,F2:F9,G2:G9))
Level: easy
Question: the names, results and the battles whose bulgarian commanders are non-boril
Formula: LET(query1,FILTER(A1:G1,D1<>"boril"),UNIQUE(CHOOSECOLS(query1,2,6,7)))
Formula2: LET(query1,FILTER(A2:G9,D2:D9<>"boril"),UNIQUE(CHOOSECOLS(query1,2,6,7)))
Level: hard
Question: The names of the battles where the opposing commanders on each side were called Baldwin I and Kaloyan.
Formula: LET(a,HSTACK(B1,G1),b,G1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:G1,(D1="kaloyan")*(E1="baldwin i")),7)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B9,G2:G9),b,G2:G9,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:G9,(D2:D9="kaloyan")*(E2:E9="baldwin i")),7)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many results are there for different battles?
Formula: SUMMARIZE(G1,DCOUNTX(F1))
Formula2: SUMMARIZE(G2:G9,DCOUNTX(F2:F9))
Level: easy
Question: the names of battles whose commanders on both side are baldwin i and kaloyan.
Formula: LET(a,HSTACK(B1,G1),b,G1,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A1:G1,(D1="kaloyan")*(E1="baldwin i")),7)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(B2:B9,G2:G9),b,G2:G9,c,CHOOSECOLS(UNIQUE(CHOOSECOLS(FILTER(A2:G9,(D2:D9="kaloyan")*(E2:E9="baldwin i")),7)),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: How many results for different battle?
Formula: SUMMARIZE(G1,DCOUNTX(F1))
Formula2: SUMMARIZE(G2:G9,DCOUNTX(F2:F9))
Level: easy