Were M1 and M3 edited by a film 's sequel 's producer and produced by M2
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x1 ns:film.film.prequel ?x2 .
?x2 a ns:film.film .
M1 ns:film.film.edited_by ?x0 .
M1 ns:film.film.produced_by|ns:film.film.production_companies M2 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M2
}