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