Was M2 a film whose executive producer wrote M0 and executive produced M1
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.writer.film M0 .
M2 a ns:film.film .
M2 ns:film.film.executive_produced_by ?x0
}