Did M1 , M3 , M4 , and M5 write M2 and write a sequel of a film
SELECT count(*) WHERE {
?x0 ns:film.film.prequel ?x1 .
?x1 a ns:film.film .
M1 ns:film.writer.film ?x0 .
M1 ns:film.writer.film M2 .
M3 ns:film.writer.film ?x0 .
M3 ns:film.writer.film M2 .
M4 ns:film.writer.film ?x0 .
M4 ns:film.writer.film M2 .
M5 ns:film.writer.film ?x0 .
M5 ns:film.writer.film M2
}