blob: a0ae3ff4f0a10c58e7052155cb3ef7db822cd820 [file] [log] [blame]
(: XQuery Aggregate Query :)
(: Find the lowest min temperature. :)
fn:min(
let $collection := "ghcnd"
for $r in collection($collection)/dataCollection/data
where $r/dataType eq "TMIN"
return $r/value
)