Did a screenwriter that a production company employed executive produce M1 , M2 , and M3 and direct M4
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.director.film M4 .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:film.producer.films_executive_produced M3 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x1 a ns:film.production_company
}