blob: ab92c7374563968e90e8f6dc064a44d93f646f74 [file] [log] [blame]
(: XQuery Aggregate Query :)
(: Find the number of wind sensor readings. :)
fn:count(
let $collection := "ghcnd_quarter_1|ghcnd_quarter_2|ghcnd_quarter_3|ghcnd_quarter_4"
for $r in collection($collection)/dataCollection/data
where $r/dataType eq "AWND"
return $r/value
)