Did M1 star M2 , M3 , and M4 , star M5 , M6 , and M7 , and star a screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
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 .
M1 ns:film.film.starring/ns:film.performance.actor M5 .
M1 ns:film.film.starring/ns:film.performance.actor M6 .
M1 ns:film.film.starring/ns:film.performance.actor M7
}