adding one query to rule them all, sort of, get a value of a key over a time period.