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