CREATE TABLE wine (No INT, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT, Name TEXT, Year INT, Price INT, Score INT, Cases INT, Drink TEXT)
CREATE TABLE appellations (No INT, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT)
CREATE TABLE grapes (ID INT, Grape TEXT, Color TEXT)

Give the neames of wines with prices below 50 and with appelations in Monterey county, and count them by a bar chart, sort X from low to high order.
SELECT Name, COUNT(Name) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.Price < 50 GROUP BY Name ORDER BY Name
SELECT "Name", COUNT("Name") FROM "appellations" AS "T1" JOIN "wine" AS "T2" ON "T1"."Appelation" = "T2"."Appelation" AND "T2"."Price" < 50 WHERE "Monterey" = "T1"."County" GROUP BY "Name" ORDER BY "Name" NULLS FIRST