This should work:
altsql> select * from film where title = ";
";
This means: select * from film where title = ";\n"
We need to look at the buffer and determine if the ';' or '\c' or '\g' is within a quote scope before treating it as an EOL signifier.