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