CREATE TABLE appellations (No INT, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT)
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 grapes (ID INT, Grape TEXT, Color TEXT)

What are the wines that have prices lower than 50 and have appelations in Monterey county, and count them by a bar chart, rank total number 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 COUNT(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 COUNT("Name") NULLS FIRST