# sequenceMatch (/docs/reference/sql/aggregate-functions/sequencematch)



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).

Checks whether the sequence of events, ordered by the timestamp argument, contains a chain of events matching the given pattern.
