Was M4 executive produced by a producer and writer of M0 , M1 , and M2 and directed by a film director
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x0 ns:film.producer.film|ns:film.production_company.films M1 .
?x0 ns:film.producer.film|ns:film.production_company.films M2 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x1 a ns:film.director .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.executive_produced_by ?x0
}