As for the statement terminator, it’s useful to include it, while running multiple queries together could result in a syntax error. In my opinion, there’s no harm in providing the statement terminator.However, I’ve modified the logic to add the statement terminator at the end instead of appending to a new line.