Did a actor that executive produced M2 and M3 write M1 and write a film
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:film.producer.films_executive_produced M3 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film M1 .
?x1 a ns:film.film
}