Did M1 star M2 , star M0 's director , writer , and producer , and star M3 and M4
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x0 ns:film.writer.film M0 .
M1 ns:film.film.starring/ns:film.performance.actor ?x0 .
M1 ns:film.film.starring/ns:film.performance.actor M2 .
M1 ns:film.film.starring/ns:film.performance.actor M3 .
M1 ns:film.film.starring/ns:film.performance.actor M4
}