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