cdr query working