Question: For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.
Schema: create table movie (title varchar, director varchar, PRIMARY KEY (title)); create table movie (director varchar, title varchar, PRIMARY KEY (director))
SQL: select t1.title, t1.director from movie as t1 join movie as t2 on t1.director = t2.director where t1.title <> t2.title order by t1.director, t1.title