Generated statements should not be inserted into `EXEC / END-EXEC` blocks. To fix, always consider EXEC nodes as a whole.