Task: Text to Code
Input (English): What are the countries for appelations with at most 3 wines?
Output (English): SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation  =  T2.Appelation GROUP BY T2.Appelation HAVING count(*)  <=  3