Did M3 marry M4 , marry M2 's American parent , and marry a writer of M0 's prequel
SELECT count(*) WHERE {
?x0 ns:film.writer.film ?x1 .
?x1 ns:film.film.sequel M0 .
?x2 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M2 .
?x2 ns:people.person.nationality ns:m.09c7w0 .
FILTER ( M3 != ?x0 ) .
FILTER ( M3 != ?x2 ) .
FILTER ( M3 != M4 ) .
M3 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 .
M3 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x2 .
M3 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M4
}