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