Was a actor that M3 was directed by and M2 starred a screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 a ns:film.writer .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x0 ns:film.director.film M3
}