Were M2 , M3 , and M4 edited by a executive producer and star of M1 and written by a person
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.producer.films_executive_produced M1 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.edited_by ?x1 .
M4 ns:film.film.written_by ?x0
}