Was a screenwriter that M2 was directed by and executive produced by a actor
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 a ns:film.writer .
?x0 ns:film.director.film M2 .
?x0 ns:film.producer.films_executive_produced M2
}