Here is my Flink CEP MATCH_RECOGNIZE sql.
SELECT E.* FROM MyEvents MATCH_RECOGNIZE ( ORDER BY procTime MEASURES A.id as id, A.name as name AFTER MATCH