I agree the different parentheses is confusing, but I also agree that the generated SQL is equivalence due to AND having precedence.over OR.