I would like to use nested wheres, so I use query() instead of find(), but I realised that query returns all revisions not only the last one. I am thinking about the solution:
Extending the temporal query with a get_temporal() method, which adds the proper where condition to the query.