check_queries function

Check for changes between two reports of the queries