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

For each director, what are the titles and ratings for all the movies they reviewed?
SELECT T2.title, T1.stars, T2.director, MAX(T1.stars) FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid WHERE director <> "null" GROUP BY director
SELECT "T2"."title", "T1"."stars", "T2"."director", MAX("T1"."stars") FROM "rating" AS "T1" JOIN "movie" AS "T2" ON "T1"."mid" = "T2"."mid" WHERE "director" <> "null" GROUP BY "director"