Was M4 edited and written by a film producer that played M1 , M2 , and M3
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.actor.film/ns:film.performance.character M1 .
?x0 ns:film.actor.film/ns:film.performance.character M2 .
?x0 ns:film.actor.film/ns:film.performance.character M3 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.written_by ?x0
}