Something like this?
{
invoices(func: type(invoice), first: 5000) @cascade {
purchase_orders {
workflows: ~purchase_orders @filter(type(workflow)) {
regions { reg as uid }
locations {
regions @filter(uid(reg))
location_uid: uid
location: location.name
}
}
}
}
}