There is a operator called "Sample (Stratified)". To me it can handle one strata at the time, such as Girls vs Boys.
But how should I solve the situation sampling with multiple strata, such as Gender (Girls/Boys), Location (area1/area2/area3) and nationality (locals/others)?