add query complete