Was M2 's sequel executive produced by M0 and M1 , written by a person , and written by a actor of M3
SELECT count(*) WHERE {
?x0 ns:film.film.executive_produced_by M0 .
?x0 ns:film.film.executive_produced_by M1 .
?x0 ns:film.film.prequel M2 .
?x0 ns:film.film.written_by ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x1 ns:film.actor.film/ns:film.performance.character M3 .
?x2 a ns:people.person
}