Did a writer and costume designer of M1 's prequel direct M0
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.film_costumer_designer.costume_design_for_film ?x1 .
?x0 ns:film.writer.film ?x1 .
?x1 ns:film.film.sequel M1
}