blob: 434980557da827312a922f148120cefca9be27a1 [file] [log] [blame]
(: XQuery Join Aggregate Query :)
(: Count all stations in the state of Oregon. :)
count(
let $station_collection := "../../../../../../../weather_data/dataset-tiny-local/data_links/local_speed_up/d0_p1_i0/stations/?select=*.xml;recurse=yes"
for $s in collection($station_collection)/root/stationCollection/station
where (some $x in $s/locationLabels satisfies ($x/type eq "ST" and fn:upper-case(fn:data($x/displayName)) eq "OREGON"))
return $s
)