CREATE TABLE Movie (mID INT, title TEXT, year INT, director TEXT)
CREATE TABLE Reviewer (rID INT, name TEXT)
CREATE TABLE Rating (rID INT, mID INT, stars INT, ratingDate DATE)

In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently, and count them by a line chart
SELECT year, COUNT(year) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year
SELECT "year", COUNT("year") FROM "Movie" AS "T1" JOIN "Rating" AS "T2" ON "T1"."mID" = "T2"."mID" AND "T2"."stars" >= 4 ORDER BY "T1"."year" NULLS FIRST