Below with sub query is not working. When I execute the sub query separately, I can see it returns results. But when this sub query is added to where condition, I get "Results" : []
Select T1.* FROM `masterdata` AS T1
WHERE T1.doc="Calendar"
AND T1.Id=(SELECT SL.DocId FROM `masterdata` AS T
UNNEST T.Sllist AS SL
WHERE T.doc="Cuslist"
AND GtId IN ["1234567"])
Sub query returning the below result
[
sls::76543_77
]