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