CREATE TABLE appellations (no DECIMAL, appelation TEXT, county TEXT, state TEXT, area TEXT, isava TEXT)
CREATE TABLE grapes (id DECIMAL, grape TEXT, color TEXT)
CREATE TABLE wine (no DECIMAL, grape TEXT, winery TEXT, appelation TEXT, state TEXT, name TEXT, year DECIMAL, price DECIMAL, score DECIMAL, cases DECIMAL, drink TEXT)

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