plot histogram and scatter plot for query workload detail