Views for comparison / top k queries, further grammar refinements