definition query in mxd