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