What did M0 and M1 write , a cinematographer executive produce , and a writer and director of M3 write
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x0 ns:film.film.written_by M0 .
?x0 ns:film.film.written_by M1 .
?x1 a ns:film.cinematographer .
?x2 ns:film.director.film M3 .
?x2 ns:film.writer.film M3
}