Were M4 and M5 produced by a employee of M1 , M2 , and M3 and written by a art director of M0
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M0 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M5 ns:film.film.written_by ?x0
}