I was expecting `AND` to take precedence but it looks like you are treating `AND` and `OR` as equal precedence and going left to right?