From reading the documentation you are linking, it does not look like MongoDB is able to compare two properties of a document using only its own operators.
Perhaps you yourself can change the documents themselves (and / or the code that stores the documents) to include a boolean property with the value obtained as a result of the comparison (in time mode), and then simply request a new property as necessary. You can even index it for better performance.
maerics
source share