uniq loop hits_100m_single 30000000000 5000 20000 30000000000 key 1 SearchEngineID RegionID SearchPhrase ClientIP func sum uniq uniqExact uniqHLL12 uniqCombined(12) uniqCombined(13) uniqCombined(14) uniqCombined(15) uniqCombined(16) uniqCombined(17) uniqCombined(18) uniqCombined(19) uniqCombined(20) uniqUpTo(3) uniqUpTo(5) uniqUpTo(10) uniqUpTo(25) uniqUpTo(100) SELECT {key} AS k, {func}(UserID) FROM hits_100m_single GROUP BY k