question: What writer of M0 was a cinematographer , director , writer , and producer of a film
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 ns:film.cinematographer.film ?x1 .
  ?x0 ns:film.director.film ?x1 .
  ?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
  ?x0 ns:film.writer.film ?x1 .
  ?x0 ns:film.writer.film M0 .
  ?x1 a ns:film.film
  }