historical rate queries