Did M1 star M2 and star a film 's costume designer
SELECT count(*) WHERE {
?x0 ns:film.film_costumer_designer.costume_design_for_film ?x1 .
?x1 a ns:film.film .
M1 ns:film.film.starring/ns:film.performance.actor ?x0 .
M1 ns:film.film.starring/ns:film.performance.actor M2
}