did you follow this link (direct mode) first given in my post on 30 Dec 2022 18:35.
.
when composing and saving SQL queries in Base I will always use direct mode whenever possible.
.
if you do not use direct mode then Base will alter the SQL, queries will be saved as one long unformatted string, unquoted field names and aliases are double quoted and comments are appended rendering them useless.
the GUI can only handle simple SQL statements.