fds=327 327 fds.327 xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $atts := $context//att[(bron/descendant::*/@fonds = 'fds.327')] 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> Beggendorf Beggendorf Beggendorph 1172 R T Bulo unb. ± Heinsberg de Bulo 1172 R T Drinhausen Übach-Palenberg Trinhusen 1172 R T Geilenkirchen Geilenkirchen Geilenkirche 1172 R T Geldern Geldern Gelren 1102 R T Gozlo unb. im RB Aachen Gozlo 1172 R T Heinsberg Heinsberg Heimesbergensis 1172 R T Horn Horn Hurne 1102 R T Kessenich Kessenich Kesnic 1102 R T Koslar Koslar Coslar 1172 R T Lo Onb., ± Kessenich–Horn? Lo 1102 R T Mulenbach unb. im RB Aachen Mulenbach 1172 R T O onb. ± Roermond O 1102 R T Torn Torn Cf. Thorr Turnis 1102 R T Thoronensis 1172 R T Trips Geilenkirchen Tripz 1172 R T Tüddern Tüddern Thudern 1172 R T Volkenrath Eschweiler Folkenrode 1172 R T Übach Übach Hubach 1172 R T