Was M2 directed by M3 , produced by a film producer , and edited by M1 's actor
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 ns:film.actor.film/ns:film.performance.character M1 .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}