Write a ClickHouse 23.3-compatible SQL query to find the top anomalies in each hour over the prior 24 hours in a table that contains timestamp rows.

- Use NAME_1's algorithm to calculate a running variance.

- The column names are: timestamp, array_data. The array_data column is an Array(String) column.

- The table name is events.
