Script to create rules-per-query figure.