Write SQL query to solve given problem: Which directors with the best quality directed the most films?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T1.directorid FROM directors AS T1 INNER JOIN movies2directors AS T2 ON T1.directorid = T2.directorid WHERE T1.d_quality = 5 GROUP BY T1.directorid ORDER BY COUNT(T2.movieid) DESC LIMIT 1