Learning the IN clause