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