• + 0 comments

    answer:

    puts XPath.match(doc,"sum(collection/movie/popularity) div count(collection/movie/popularity)")