Was M4 produced by a costume designer that M2 and M3 employed and produced by a film director
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x1 a ns:film.film_costumer_designer .
?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 ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}