Was M2 executive produced by a film 's star , directed by M1 's star and executive producer , and written by M3
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x1 a ns:film.film .
?x2 ns:film.actor.film/ns:film.performance.film M1 .
?x2 ns:film.producer.films_executive_produced M1 .
M2 ns:film.film.directed_by ?x2 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by M3
}