I have to do the following exercise but I don't know do it.
List the name and population of the most populous country on each continent. It is forbidden to use the ids of the 5 continents in the query, ie neither “f0_119”, nor “f0_123”, nor “f0_126”, nor “f0_129”, nor “f0_132” can appear in the query.
Here you have the link to download the XML file: https://drive.google.com/file/d/1a_YYqW-uWYtGNBuMqqAiMu4vElGJbYCx/view?usp=sharing
This is my code. I've got China but I need to show the most populous countries of the other continents Russia, the United States... Can someone help me, please?
for $var in /mondial/country
let $max:= max(/mondial/country/@population)
where $var/@population = $max
return concat(data($var/name), ' - ',data($var/@population))