Show me the titles of all the movies.
select title from movie
What about the name of their reviewers and directors?
select t3.name, t2.title, t2.director from rating as t1 join movie as t2 on t1.mid = t2.mid join reviewer as t3 on t1.rid = t3.rid
Show those who have the same names.
select t3.name, t2.title, t2.director from rating as t1 join movie as t2 on t1.mid = t2.mid join reviewer as t3 on t1.rid = t3.rid where t2.director = t3.name
Give me the reviewer name, movie title, and number of stars.
select distinct t3.name, t2.title, t1.stars from rating as t1 join movie as t2 on t1.mid = t2.mid join reviewer as t3 on t1.rid = t3.rid where t2.director = t3.name