OptionalfromOptionalmeanWhen the group's rows span several years: the mean of its yearly totals, in the unit (per year).
OptionalsumThe total, when the group's rows are of one year.
OptionaltoOptionalunitOptionalyearsWhen the answer spans several years: the years the group has values in, and their span.
A total of one group and unit. The values are yearly (t/a, a year's mean flow in m3/s), so years are never added: within a year the group's rows are summed, and over several years the answer is the mean of those yearly totals.