# sequenceNextNode (/docs/reference/sql/aggregate-functions/sequencenextnode)



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

Returns the value of the event that directly follows a matched chain of events, according to the specified direction and base point.
