Did a person 's actor executive produce a film and write M0
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character ?x1 .
?x0 ns:film.producer.films_executive_produced ?x2 .
?x0 ns:film.writer.film M0 .
?x1 a ns:people.person .
?x2 a ns:film.film
}