Did a actor write M1 and write a film 's prequel
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film M1 .
?x1 ns:film.film.sequel ?x2 .
?x2 a ns:film.film
}