Which film did M1 direct and a writer , producer , and executive producer of M2 write
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by M1 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:film.producer.films_executive_produced M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
?x1 ns:film.writer.film M2
}