added timeprediction of query