Was a costume designer of a prequel of M0 a film 's producer
SELECT count(*) WHERE {
?x0 ns:film.film_costumer_designer.costume_design_for_film ?x1 .
?x0 ns:film.producer.film|ns:film.production_company.films ?x2 .
?x1 ns:film.film.sequel M0 .
?x2 a ns:film.film
}