Did M0 's producer distribute and produce a film executive produced by and written by M2 's actor
SELECT count(*) WHERE {
?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x1 .
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x1 a ns:film.film .
?x1 ns:film.film.executive_produced_by ?x2 .
?x1 ns:film.film.written_by ?x2 .
?x2 ns:film.actor.film/ns:film.performance.character M2
}