The whole logic behind the query syntax/fluent syntax is to select an object as a whole or to select a property of an object.
Look at this following query:
var result = (from s in _ctx.ScannedDatas.AsQueryable()
where s.Data == scanData
select s.Id).FirstOrDefault();
Please note that after the where clause I am selecting only the Id property of the ScannedData object.
So to answer your question, if AdvancedUi is a property of UiTypes class then your query should be more like:
var result = from UiType in db.UiTypes
select UiType.AdvancedUi;
Alternatively if you want to return all data from a table say ScannedDatas, then your query will be:
var listResult = (from d in _ctx.ScannedDatas
select d).ToList();
Hope this answers your question my friend.