CREATE TABLE WINE (Appelation VARCHAR)
CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR)

Find the country of all appelations who have at most three wines.
SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING COUNT(*) <= 3
SELECT "T1"."County" FROM "APPELLATIONS" AS "T1" JOIN "WINE" AS "T2" ON "T1"."Appelation" = "T2"."Appelation" GROUP BY "T2"."Appelation" HAVING COUNT(*) <= 3