Was M2 directed by , executive produced by , and written by a person that executive produced a film
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.producer.films_executive_produced ?x1 .
?x1 a ns:film.film .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by ?x0
}