What was written by M2 's parent , executive produced by M0 , and executive produced by a producer and writer of M1
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.executive_produced_by M0 .
?x0 ns:film.film.written_by ?x2 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
?x1 ns:film.writer.film M1 .
?x2 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M2
}