Query service.