An ';' is appended on the derived sql query if it is missing