Calculate mean and standard deviation for query plot.