question: Which writer of M0 , M1 , and M2 wrote and produced M3 , M4 , and M5
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 ns:film.producer.film|ns:film.production_company.films M3 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M4 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M5 .
  ?x0 ns:film.writer.film M0 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:film.writer.film M3 .
  ?x0 ns:film.writer.film M4 .
  ?x0 ns:film.writer.film M5
  }