Did M1 and M4 star M2 and M3 and star a producer of M0
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films 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 .
M4 ns:film.film.starring/ns:film.performance.actor ?x0 .
M4 ns:film.film.starring/ns:film.performance.actor M2 .
M4 ns:film.film.starring/ns:film.performance.actor M3
}