Was M1 directed and executive produced by a film 's sequel 's writer
SELECT count(*) WHERE {
?x0 ns:film.writer.film ?x1 .
?x1 ns:film.film.prequel ?x2 .
?x2 a ns:film.film .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.executive_produced_by ?x0
}