Was M2 directed by a character , written by M3 , executive produced by M0 's actor , and written by M4
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M0 .
?x1 a ns:fictional_universe.fictional_character .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4
}