adaptively decides off-line analysis tasks according to previous query logs.