Mean



Returns the arithmetic mean of the values in each group (the same as Avg).

Numeric Mean(AggregationArray valuesArray)

round-pushpin Groups the synonyms by source word and computes Mean of the target word ids.
SELECT
    SourceWordId,
    Mean(TargetWordId) as Result
FROM
    WordList:Synonym
GROUP BY
    SourceWordId