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