for $n in child::name return concat($n/fname, ' ', $n/surname)
for $id in distinct-values(//@idref) return count(key('elements-by-id',$id))
for $d in (0 to 6) return (current-date() + ($d * xdt:dayTimeDuration('P1D')))