Query in Java as in Mongo shell