blob: 1d905844ae0278350103acfeee8f3458998834fd [file] [log] [blame]
(: XQuery Aggregate Query :)
(: Find the lowest min temperature. :)
fn:min(
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 "TMIN"
return $r/value
)