MichelDiz commented :
I think this feature could be very handy e.g:
{
#dummy query as empty query you can't use, other than aggregation.
var(func: uid(0x1)){
amount as math(5)
page as math(2)
OST as math(amount * page)
}
q(func: has(somePred),
orderasc: otherPred, first: val(amount), offset: val(OST) ) {
expand(_all_)
}
}