Did M2 star M3 , M4 , and M5 and star a writer of M0 and M1
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.starring/ns:film.performance.actor M3 .
M2 ns:film.film.starring/ns:film.performance.actor M4 .
M2 ns:film.film.starring/ns:film.performance.actor M5
}