learned ors and ands