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