hi.https://stream.boxwatch.ru/docs/current/sql-merge.html
Compatibility section:"WITH clause"should be
<literal>WITH</literal> clause