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