70
XQuery
count
= a (aggregate) function that returns the number of elms
<
big_publishers
>
FOR
$p
IN
distinct
(document("bib.xml")//
publisher
)
LET
$b
:= document("bib.xml")/
book
[
publisher
=
$p
]
WHERE
count
(
$b
) > 100
RETURN
{
$p
}
</
big_publishers
>