Was M2 a film executive produced by a screenwriter and edited by M1 's writer and executive producer
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:film.writer.film M1 .
M2 a ns:film.film .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.executive_produced_by ?x0
}