map:merge( for $pmidset at $i in $pmids group by $chunk as xs:integer := ($i idiv 100) return map:entry($chunk, $pmidset) )