Was M2 executive produced by M0 's writer , producer , and editor and edited by a film producer
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x0 ns:film.writer.film M0 .
?x1 a ns:film.producer .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.executive_produced_by ?x0
}