CREATE TABLE reviewer (rid NUMBER, name CLOB)
CREATE TABLE rating (rid NUMBER, mid NUMBER, stars NUMBER, ratingdate TIME)
CREATE TABLE movie (mid NUMBER, title CLOB, year NUMBER, director CLOB)

Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.
SELECT DISTINCT year FROM movie AS T1 JOIN rating AS T2 ON T1.mid = T2.mid WHERE T2.stars >= 4 ORDER BY T1.year
SELECT DISTINCT "year" FROM "movie" "T1" JOIN "rating" "T2" ON "T1"."mid" = "T2"."mid" AND "T2"."stars" >= 4 ORDER BY "T1"."year"