Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE movie ( mid number, title text, year number, director text )
TABLE: CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time )
TABLE: CREATE TABLE reviewer ( rid number, name text )

### Question ###
What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.

### Accurate SQL ###

SELECT T1.director, T1.title FROM movie AS T1 JOIN rating AS T2 ON T1.mid = T2.mid WHERE T2.stars = 5