What was written by a character and produced by M1 's producer 's child
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x3 .
?x2 a ns:fictional_universe.fictional_character .
?x3 ns:film.producer.film|ns:film.production_company.films M1
}