query patch