Add plotting script.

Plot histograms collected during benchmarks.
Fix some warnings in benchmark_queries.py.