Was a person that M0 's sequel starred , was executive produced by , and was written by M1
SELECT count(*) WHERE {
?x0 ns:film.film.prequel M0 .
M1 a ns:people.person .
M1 ns:film.actor.film/ns:film.performance.film ?x0 .
M1 ns:film.producer.films_executive_produced ?x0 .
M1 ns:film.writer.film ?x0
}