Was a director of M2 a film producer that M1 was written and edited by
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.director.film M2 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.writer.film M1
}