Add BEGIN...END and modify FOR ROWS IN accordingly