Was M2 written by a character , produced by M1 's distributor , and written by M3 and M4
SELECT count(*) WHERE {
?x0 a ns:fictional_universe.fictional_character .
?x1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4
}