\[ODM\] Queries for versioned objects