fds=203 203 fds.203 xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $atts := $context//att[(bron/descendant::*/@fonds = 'fds.203')] return <result lem='{count($atts/preceding-sibling::lemma)}' atts='{count($atts)}' shown='{$howmany}'> { for $i in 1 to min(($howmany, count($atts))) let $att := $atts[$i] group by $lem := $att/preceding-sibling::lemma order by $lem/vorm return <entry> {$lem} {$att intersect $atts} </entry> } </result> Boing Héron Bungne ± 1200 I R Bressoux Bressoux Brecve (± 1200) I R Fléron Fléron Fleron (± 1200) I R Jupille Jupille Ivpilie gén. (± 1200) I R Longdoz Liège Londos (± 1200) I R Retinne Retinne Retines (± 1200) I R