Did M1 and M5 star M2 , star a screenwriter , star M3 , and star M4
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 .
M5 ns:film.film.starring/ns:film.performance.actor ?x0 .
M5 ns:film.film.starring/ns:film.performance.actor M2 .
M5 ns:film.film.starring/ns:film.performance.actor M3 .
M5 ns:film.film.starring/ns:film.performance.actor M4
}