Added functionality to query results averaging values on a minute by minute basis