Add or clause to attribute reference