Was M2 a film whose prequel was produced by and written by M0 and M1
SELECT count(*) WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies M0 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
?x0 ns:film.film.written_by M0 .
?x0 ns:film.film.written_by M1 .
M2 a ns:film.film .
M2 ns:film.film.prequel ?x0
}