What prequel of M0 was written by M4 , executive produced by M1 , M2 , and M3 , and written by M5 's parent
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by M1 .
?x0 ns:film.film.executive_produced_by M2 .
?x0 ns:film.film.executive_produced_by M3 .
?x0 ns:film.film.sequel M0 .
?x0 ns:film.film.written_by ?x1 .
?x0 ns:film.film.written_by M4 .
?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M5
}