Was M2 produced by a person , edited by M1 's actor , and written by M3 , M4 , and M5
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x1 ns:film.actor.film/ns:film.performance.character M1 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4 .
M2 ns:film.film.written_by M5
}