added condition query rest client