Did M2 and M3 produce a film that starred M1 's writer , director , and producer
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.starring/ns:film.performance.actor ?x1 .
?x1 ns:film.director.film M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
?x1 ns:film.writer.film M1 .
M2 ns:film.producer.film|ns:film.production_company.films ?x0 .
M3 ns:film.producer.film|ns:film.production_company.films ?x0
}