Was M2 written by a film producer and directed by M1 's director , editor , and executive producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 ns:film.director.film M1 .
?x1 ns:film.editor.film M1 .
?x1 ns:film.producer.films_executive_produced M1 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.written_by ?x0
}