raven ql select count
from Orders // select
group by Company // group
where count() > 5 // filter
order by count() desc // order
select count() as Count, key() as Company // project
include Company // side-load related data