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