rename myquery to amdquery