solve the resolveSyntaxPredicates