Did M1 edit M2 , write a prequel and sequel of a film , and produce M3 and M4
SELECT count(*) WHERE {
?x0 ns:film.film.prequel ?x1 .
?x0 ns:film.film.sequel ?x1 .
?x1 a ns:film.film .
M1 ns:film.editor.film M2 .
M1 ns:film.producer.film|ns:film.production_company.films M3 .
M1 ns:film.producer.film|ns:film.production_company.films M4 .
M1 ns:film.writer.film ?x0
}