Was M1 a film whose prequel was directed by , was written by , starred , and was produced by M0
SELECT count(*) WHERE {
?x0 ns:film.film.directed_by M0 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M0 .
?x0 ns:film.film.starring/ns:film.performance.actor M0 .
?x0 ns:film.film.written_by M0 .
M1 a ns:film.film .
M1 ns:film.film.prequel ?x0
}