Was M1 M0 's prequel 's star 's actor 's gender
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film ?x2 .
?x2 ns:film.film.sequel M0 .
M1 ^ns:people.person.gender ?x0
}