What did a cinematographer that M1 was directed by and written by produce
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x1 a ns:film.cinematographer .
?x1 ns:film.director.film M1 .
?x1 ns:film.writer.film M1
}