Models, and native Tables, can serve as the source for GUI queries.
However, if you convert a GUI Query based on a Model to an SQL query, then the Table name in the SQL is "source" eg source.fieldname
But it does not evaluate. So it appears that you cannot base an SQL query on a Model, even though it offers the convert option. Is this correct?
Yes, no problem with the Model as is, it executes without error. But an SQL query based on the Model does not execute. It seems that the SQL editor adds a line, since the error has to do with line 2, which does not exist. Irrespective of whether I end the line in a ";" or not, the same error occurs. I tried a different Model and the same behaviour ensues. Even when I add a WHERE clause, the context menu recognises the Model and provides the correct field names in the selection, eg "Book Name".