Which person whose child edited , directed , and wrote M3 , M4 , and M5 did M1 and M2 marry
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 .
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M1 .
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 .
?x1 ns:film.director.film M3 .
?x1 ns:film.director.film M4 .
?x1 ns:film.director.film M5 .
?x1 ns:film.editor.film M3 .
?x1 ns:film.editor.film M4 .
?x1 ns:film.editor.film M5 .
?x1 ns:film.writer.film M3 .
?x1 ns:film.writer.film M4 .
?x1 ns:film.writer.film M5 .
FILTER ( ?x0 != M1 ) .
FILTER ( ?x0 != M2 )
}