I have an XML file with information on movies. I want my expression to return the directors in the XML that have directed more than 1 movie.
What I have now is:
Try this:
for $director in distinct-values(//director) where count(//video[director = $director]) > 1 return $director