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