Fix query18 select: use GreaterThan on values

GreaterThan is not really implemented for dictionaries, it works only for values that are already in the dictionary.
Fix query18 sorting

update query results