Query by issue_id to optimize performance.
Using DescriptiveStatistics to calculate max, mean, median and sum.
New metric auxiliary for grouping pair file by issue.
Making fields as final.