Debug syntax error

I am not able to find what is wrong with this query. the compass shows the filter button in red, which means that it has a syntax error: This is for results.scores db, which has results as an array. Please help.

{results: {$elemMatch: {$gt: 70, $lt: 80}}}strong text

Did it work with shell?
If filter button is red means some syntax error
Make sure you clean everything from search/filter box
Or quotes may be missing on results?

{ “results” : { $elemMatch: {$gte: 70 , $lt: 80 } } }

Thanks Ramachandra. My compass must have been corrupted, because it gave the same error for any query. I restarted the shell and it works now.