Greetings @dkxxx-rc, I did some digging and here is what I found.
Vannurswamy Kuruba already nailed the core of this, so I'll build on his reply.
On #1: yes, it's a doc inconsistency. On the same page, the Filter example qualifies the column (orders.amount > 10000), but the Field example uses a bare amount. The Measure example is unqualified too. The fix is to prefix the column with the table name as it appears under Configure > Sources:
CASE
WHEN orders.amount < 10000 THEN 'Small'
WHEN orders.amount < 50000 THEN 'Medium'
ELSE 'Large'
END
On #2: there's no way to declare your own alias in a Field. It's an expression, not a query, so there's no FROM ... AS ... where t could come from. My read is that "alias" refers to names Genie generates itself. The docs mention it does this for the right-hand table in self-joins or repeated joins. The docs don't describe any user-defined alias syntax, so the actual table name is the safe bet.
One more thing from your screenshot: Author Identifier has a space, so it needs backticks, something like COUNT(DISTINCT publications.`Author Identifier`). Swap in your real table name.
If the qualified version still fails, post the table name as shown under Sources, the exact expression, and whether the agent has joins or multiple tables. At that point it may be a product validation issue rather than a SQL one. It's also worth using the feedback option on the doc page so the examples get fixed.
References:
Hope this helps.
Regards, Louis.