Basic support for querying history data.