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)
CREATE TABLE grapes (id DECIMAL, grape TEXT, color TEXT)
CREATE TABLE appellations (no DECIMAL, appelation TEXT, county TEXT, state TEXT, area TEXT, isava TEXT)

Find the average price of wines that are not produced from Sonoma county.
SELECT AVG(price) FROM wine WHERE NOT appelation IN (SELECT T1.appelation FROM appellations AS T1 JOIN wine AS T2 ON T1.appelation = T2.appelation WHERE T1.county = 'Sonoma')
WITH "_u_0" AS (SELECT "T1"."appelation" FROM "appellations" AS "T1" JOIN "wine" AS "T2" ON "T1"."appelation" = "T2"."appelation" WHERE "T1"."county" = 'Sonoma' GROUP BY "appelation") SELECT AVG("price") FROM "wine" LEFT JOIN "_u_0" AS "_u_0" ON "_u_0"."" = "appelation" WHERE "_u_0"."" IS NULL