Was M2 produced by a film 's executive producer and star and edited by M1 's writer and art director
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:film.producer.films_executive_produced ?x1 .
?x1 a ns:film.film .
?x2 ns:film.film_art_director.films_art_directed M1 .
?x2 ns:film.writer.film M1 .
M2 ns:film.film.edited_by ?x2 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}