Did a screenwriter edit M1 , write M2 , M3 , M4 , and M5 , and executive produce M6
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.editor.film M1 .
?x0 ns:film.producer.films_executive_produced M6 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3 .
?x0 ns:film.writer.film M4 .
?x0 ns:film.writer.film M5
}