Did M2 star a director of M0 and star a executive producer of a film
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x1 ns:film.producer.films_executive_produced ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.starring/ns:film.performance.actor ?x1
}