gem=Pulheim Pulheim Pulheim xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $lemmata := $context//lemma[geo//gem[matches(.,'^Pulheim$','i')]] return <result lem='{count($lemmata)}' atts='{count($lemmata/following-sibling::att)}' shown='{$howmany}'> { for $i in 1 to min(($howmany, count($lemmata))) let $lem := $lemmata[$i] order by $lem/vorm return <entry> {$lem} {$lem/following-sibling::att} </entry> } </result> Bolande unb. ± Pulheim Bonlanden 1094 K HUA 11 a Bonlanden 1094 K SC 1 Bolande 1191 K SC 4 Kammerforst Wald bei Pulheim Camervorst nemoris cuiusdam secus Polheim quod Camervorst uocatur 1199 K SGg 7 Camervorst nemoris cuiusdam secus Polheim quod Camervorst uocatur 1201 K SGg 8 Pulheim Pulheim Polheim 1067 Kd SGg Polheim 1094 K HUA 11 a und K SC 1 Polheim 1171 K SGg 5 Polheim 1199 K SGg 7 Polheim 1201 K SGg 8 Pôlheim (1079-89) Kd SGg Poilheim 1214 K SGg 11