CountDistinct
Returns the number of distinct values in each group. Values are compared without regard to case unless caseSensitive is true.
Numeric CountDistinct(AggregationArray valuesArray, Boolean caseSensitive = false)
SELECT CountDistinct(English) as Words, CountDistinct(English, true) as CaseSensitiveWords FROM WordList:FlatTranslate