# anyHeavy (/docs/reference/sql/aggregate-functions/anyheavy)



This page describes the RawTree engine binary used to generate this reference. It does not define Query API support. Descriptions retain upstream ClickHouse terminology. See [SQL interface scope](/docs/reference/clickhouse-compatibility#service-interfaces).

Selects a frequently occurring value using the [heavy hitters](https://doi.org/10.1145/762471.762473) algorithm.
If there is a value that occurs more than in half the cases in each of the query's execution threads, this value is returned.
Normally, the result is nondeterministic.

**Syntax**

```sql
anyHeavy(column)
```

**Arguments**

* `column` — The column name. [`String`](/reference/data-types/string)

**Returned value**

Returns a frequently occurring value. The result is nondeterministic. [`Any`](/reference/data-types)

**Examples**

**Usage example**

```sql title=Query
SELECT anyHeavy(AirlineID) AS res
FROM ontime;
```

```text title=Response
┌───res─┐
│ 19690 │
└───────┘
```

*Introduced in version 1.1.0.*
