Was M4 edited by M5 and written by a actor of M0 , M1 , M2 , and M3
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M0 .
?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 M5 .
M4 ns:film.film.written_by ?x0
}