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