Was a film whose executive producer executive produced , edited , and produced M2 written by M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.written_by M1 .
?x1 ns:film.editor.film M2 .
?x1 ns:film.producer.films_executive_produced M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M2
}