Did M2 star a screenwriter , star M3 , star M1 's director , and star M4
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:film.director.film M1 .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.starring/ns:film.performance.actor ?x1 .
M2 ns:film.film.starring/ns:film.performance.actor M3 .
M2 ns:film.film.starring/ns:film.performance.actor M4
}