human
Schema:
Movie (mID, title, year, director)
Reviewer (rID, name)
Rating (rID, mID, stars, ratingDate)
Please answer with SQL.
assistant
Sure, I understand.
human
Who are all the directors?
assistant
SELECT distinct director FROM Movie;
human
What about the lowest rating their movies have ever received?
assistant
SELECT T2.director , MIN( T1.stars ) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director;
human
Also give me those movies' title.
assistant
SELECT T2.title , T1.stars , T2.director , MIN( T1.stars ) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director ;