Were M2 and M3 written by a film director that executive produced a film
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:film.producer.films_executive_produced ?x1 .
?x1 a ns:film.film .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x0
}