parse intersection and setminus