Generates an alias for a field and it's aggregated function.
string $field: The field name used in the alias.
string $function: The aggregation function used in the alias.
string The alias for the field.
protected function getAggregationAlias($field, $function) {
return strtolower($field . '_' . $function);
}