define query scope