Were M2 , M3 , and M4 written by a person and executive produced by a writer and editor of M0
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.writer.film M0 .
?x1 a ns:people.person .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x1 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x1
}