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