Solve the following sql problem:
Please list down ID of movies acted by top 5 actors based on actor rating.

Schema:
SCHEMA:
- Table: users
  - Column: userid
    - Samples: [1, 2, 3, 4, 5]
  - Column: age
    - Samples: [1, 56, 25, 45, 25]
  - Column: u_gender
    - Samples: [F, M, M, M, M]
  - Column: occupation
    - Samples: [2, 3, 2, 4, 3]
- Table: directors
  - Column: directorid
    - Samples: [67, 92, 284, 708, 746]
  - Column: d_quality
    - Samples: [4, 2, 4, 4, 4]
  - Column: avg_revenue
    - Samples: [1, 3, 0, 1, 4]
- Table: actors
  - Column: actorid
    - Samples: [4, 16, 28, 566, 580]
  - Column: a_gender
    - Samples: [M, M, M, M, M]
  - Column: a_quality
    - Samples: [4, 0, 4, 4, 4]
- Table: movies
  - Column: movieid
    - Samples: [1672052, 1672111, 1672580, 1672716, 1672946]
  - Column: year
    - Samples: [3, 4, 4, 4, 4]
  - Column: isEnglish
    - Samples: [T, T, T, T, T]
  - Column: country
    - Samples: [other, other, USA, USA, USA]
  - Column: runningtime
    - Samples: [2, 2, 3, 2, 0]
- Table: movies2actors
  - Column: movieid
    - Samples: [1672580, 1672946, 1673647, 1673647, 1673647]
  - Column: actorid
    - Samples: [981535, 1094968, 149985, 261595, 781357]
  - Column: cast_num
    - Samples: [0, 0, 0, 0, 0]
- Table: movies2directors
  - Column: movieid
    - Samples: [1672111, 1672946, 1679461, 1691387, 1693305]
  - Column: directorid
    - Samples: [54934, 188940, 179783, 291700, 14663]
  - Column: genre
    - Samples: [Action, Action, Action, Action, Action]
- Table: u2base
  - Column: userid
    - Samples: [2, 2, 3, 4, 5]
  - Column: movieid
    - Samples: [1964242, 2219779, 1856939, 2273044, 1681655]
  - Column: rating
    - Samples: [1, 1, 1, 1, 1]

SELECT T2.movieid FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid GROUP BY T2.actorid ORDER BY AVG(T1.a_quality) DESC LIMIT 5