fds=238 238 fds.238 xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $atts := $context//att[(bron/descendant::*/@fonds = 'fds.238')] 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> Ahr = Altenahr Ahr Genannt nach der Ahr Arhe 1189 K SMk 2 Bonn Bonn Bůnnensis 1189 K SMk 2 Diez Diez Disth 1189 K SMk 2 Efferen Hürth Efferne 1189 K SMk 2 Effirne 1225 K SMk 3 Fischenich Hürth Vishkenich 1189 K SMk 2 Kaster Kaster Casthere 1189 K SMk 2 Korschenbroich Korschenbroich Kirssemig 1225 K SMk 3 Mommersloch Köln Mimbernis log 1184 K SMk 1 Schirick Dülken Schiderke 1189 K SMk 2 Volmarstein Volmarstein Wolmůthsteine 1189 K SMk 2 Wickrath Wickrath Wicherode 1189 K SMk 2