Which Japanese parent of M5 was a female film director that M1 and M2 were written by
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.director .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M5 .
?x0 ns:people.person.gender ns:m.02zsn .
?x0 ns:people.person.nationality ns:m.03_3d
}