finished query and response