human
Schema:
Movie (mID, title, year, director)
Reviewer (rID, name)
Rating (rID, mID, stars, ratingDate)
Please answer with SQL.
assistant
Sure, I understand.
human
What are the movie titles and average rating of the movies with the lowest average rating?
assistant
SELECT T2.title , AVG ( T1.stars ) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG ( T1.stars ) LIMIT 1;
human
What year did the sound of music come out and who was the director? | Do you mean the year of the movie whose title is The Sound of Music came out and the director of it? | yes
assistant
SELECT year , director FROM Movie WHERE title = "The Sound of Music" ;