temporal features provided in immudb allows query (and subquery) resolution based on older states of the database.
So for instance, it can be thought as retrieving the documents on its current state in a given time range.
Querying the history of changes of a given key or document is slightly different and it's also covered with history operation in immudb.