Table:
0
A
B
C
D
E
F
1
NGC number
Object type
Constellation
Right ascension ( J2000 )
Declination ( J2000 )
Apparent magnitude
2
6205
Globular cluster
Hercules
16h41m41s
°27′37″
5.8
3
6210
Planetary nebula
Hercules
16h44m29.5s
°48′00″
12.3
4
6218
Globular cluster
Ophiuchus
16h47m14.5s
°56′52″
8.5
5
6231
Open cluster
Scorpius
16h54m08.5s
°49′36″
2.8
6
6240
Irregular galaxy
Ophiuchus
16h52m59.0s
°24′02″
14.7
7
6242
Open cluster
Scorpius
16h55m
°28′
7.1
8
6254
Globular cluster
Ophiuchus
16h57m09.0s
°05′58″
6.4
9
6266
Globular cluster
Ophiuchus
17h01m12.6s
°06′45″
8.6
10
6273
Globular cluster
Ophiuchus
17h02m37.7s
°16′05″
8.5

Questions and formulas:
Question: Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s
Formula: LET(query1,LET(query1,FILTER(A1:F1,(C1="ophiuchus")*(D1="16h47m14.5s")),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<8.6))
Formula2: LET(query1,LET(query1,FILTER(A2:F10,(C2:C10="ophiuchus")*(D2:D10="16h47m14.5s")),SUMMARIZE(CHOOSECOLS(query1,5),SUMX(CHOOSECOLS(query1,6)))),FILTER(query1,CHOOSECOLS(query1,2)<8.6))
Level: hard
Question: Tell me the right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273
Formula: LET(query1,LET(query1,FILTER(A1:F1,B1="globular cluster"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,6)),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,(CHOOSECOLS(query1,2)=8.5)*(CHOOSECOLS(query1,3)=6273)))
Formula2: LET(query1,LET(query1,FILTER(A2:F10,B2:B10="globular cluster"),SUMMARIZE(CHOOSECOLS(query1,4),SUMX(CHOOSECOLS(query1,6)),SUMX(CHOOSECOLS(query1,1)))),FILTER(query1,(CHOOSECOLS(query1,2)=8.5)*(CHOOSECOLS(query1,3)=6273)))
Level: hard