blob: ee26d88105d6a631b8330968bfd93f0b585a48bd [file] [log] [blame]
(: XQuery Join Aggregate Query :)
(: Count all stations in the United States. :)
count(
let $station_collection := "/tmp/1.0_partition_ghcnd_all_xml/stations"
for $s in collection($station_collection)/stationCollection/station
where (some $x in $s/locationLabels satisfies ($x/type eq "CNTRY" and $x/id eq "FIPS:US"))
return $s
)