question: What male producer of M0 was a screenwriter 's actor
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.character ?x1 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M0 .
  ?x0 ns:people.person.gender ns:m.05zppz .
  ?x1 a ns:film.writer
  }