Hey, check out this query and see if it works as intended.
{
var(fun: has(hasRegion) @filter(eq(country, "India"))){
name
Region @filter( has(hasOtherName)) {
R1 as uid
name
hasOtherName { R2 as uid }
}
RegionB2 : Region @filter(Not has(hasOtherName)) {
R1a as uid
name
}
Case1(fun: uid(R1, R2)){
name
}
Case2(fun: uid(R1a)){
name
}
}