Was M4 written by a executive producer of M1 , M2 , and M3 and executive produced by M0 's employee
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:film.producer.films_executive_produced M2 .
?x1 ns:film.producer.films_executive_produced M3 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x1
}