optimize syntax for review query