blob: 0f5a3b249a279ca3e6b6686d0627b6347eb2fb77 [file] [log] [blame]
use dataverse TinySocial;
for $user in dataset MugshotUsers
let $result := {
"uname" : $user.name,
"msg-length" : avg(
for $message in dataset MugshotMessages
where $message.author-id = $user.id
return string-length($message.message)
)
}
order by $result.msg-length desc
limit 10
return $result;