What was executive produced by a producer of M2 's prequel , executive produced by M0 and M1 , and written by a cinematographer
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.executive_produced_by M0 .
?x0 ns:film.film.executive_produced_by M1 .
?x0 ns:film.film.written_by ?x2 .
?x1 ns:film.producer.film|ns:film.production_company.films ?x3 .
?x2 a ns:film.cinematographer .
?x3 ns:film.film.sequel M2
}