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