Did M1 write a film 's sequel and executive produce M2
SELECT count(*) WHERE {
?x0 ns:film.film.prequel ?x1 .
?x1 a ns:film.film .
M1 ns:film.producer.films_executive_produced M2 .
M1 ns:film.writer.film ?x0
}