【发布时间】:2020-05-03 17:53:07
【问题描述】:
我正在尝试解决这个问题,但是这段代码给了我结果而不计算它。我的意思是我需要它是 13,但结果是除以值为 1 的行。
1
1
1
1
1
1
1
1
1
1
1
1
1
这是问题,这就是我所做的。
列出在一个拥有佛教宗教(元素,值为“佛教”)的国家中拥有边界(元素)的国家数量。正确的查询必须返回值 13。
for $var in /mondial/country
let $religion:=/mondial/country[religions="Buddhist"]/data(@id)
where $var /border/@country=$religion
return data (count($var/name)
【问题讨论】: