Were M2 , M4 , M5 , and M6 written by a art director , written by M3 , and produced by M1 's executive producer
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 ns:film.producer.films_executive_produced M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M4 ns:film.film.written_by ?x0 .
M4 ns:film.film.written_by M3 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M5 ns:film.film.written_by ?x0 .
M5 ns:film.film.written_by M3 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M6 ns:film.film.written_by ?x0 .
M6 ns:film.film.written_by M3
}