This shows a situation where state must be MA and either code must be A or amt must be > 500 to meet the criteria.