Were M1 , M3 , M4 , M5 , and M6 edited by M0 's editor and executive producer and written by M2
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.producer.films_executive_produced M0 .
M1 ns:film.film.edited_by ?x0 .
M1 ns:film.film.written_by M2 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.written_by M2 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.written_by M2 .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.written_by M2 .
M6 ns:film.film.edited_by ?x0 .
M6 ns:film.film.written_by M2
}