Did M1 write M2 and M3 , produce M4 , and executive produce M0 's prequel
SELECT count(*) WHERE {
?x0 ns:film.film.sequel M0 .
M1 ns:film.producer.films_executive_produced ?x0 .
M1 ns:film.producer.film|ns:film.production_company.films M4 .
M1 ns:film.writer.film M2 .
M1 ns:film.writer.film M3
}