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

What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.
SELECT T1.director, T1.title FROM movie AS T1 JOIN rating AS T2 ON T1.mid = T2.mid WHERE T2.stars = 5
SELECT "T1"."director", "T1"."title" FROM "movie" AS "T1" JOIN "rating" AS "T2" ON "T1"."mid" = "T2"."mid" AND "T2"."stars" = 5