Was M3 written by M4 , executive produced by a person that M1 and M2 employed , and directed by M5
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
M3 ns:film.film.directed_by M5 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by M4
}