Use parametric study region id in query