What was produced by a parent of M0 and produced by a actor that M2 was written by and starred
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M0 .
?x2 a ns:film.actor .
?x2 ns:film.actor.film/ns:film.performance.film M2 .
?x2 ns:film.writer.film M2
}