I'm pretty sure this will not work. In effect what the statement should evaluate to is an instance of a GreaterFilter but there is no GreaterFilter that takes an extractor for both the field to be checked and the value to be compared to. Neither do any of the other built in Filter implementations take two extractors as parameters so you couldn't do something like "FirstClass.age = SecondBrother.age" either. Obviously you could write a custom GreaterFilter that does do what you want but it would not be used by the QueryBuilder or CohQL.
Thanks for reply, now i have below query 1. equalsFilter take for Exactor for both the field to be checked and the value to be compared to ?? 2. Can you suggest me any link for writing customquery