Was M1 a costume designer that M3 was written by and a film starred
SELECT count(*) WHERE {
?x0 a ns:film.film .
M1 a ns:film.film_costumer_designer .
M1 ns:film.actor.film/ns:film.performance.film ?x0 .
M1 ns:film.writer.film M3
}