Were M2 and M3 executive produced by a person and written by a film 's art director and director
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x1 ns:film.director.film ?x2 .
?x1 ns:film.film_art_director.films_art_directed ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x1
}