Queries on nested ObjectId and datetime values.