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