Was M2 written by a costume designer whose employer produced and distributed a film
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x2 .
?x1 ns:film.producer.film|ns:film.production_company.films ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.written_by ?x0
}