How to save multiple query variables result as separate field in custom data structure as a result?

Is it ok to have multiple result blocks in root block, such as:

{
    A as var(...) {} //Already wrote this query.
    B as var(...) {} //Already wrote this query.

    aResult(func: uid(A) ) {
        uid
        expand(_all_)
    }

    bResult(func: uid(B) ) {
        uid
        expand(_all_)
    }
}