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