Did M1 , M2 , and M3 marry a editor and writer of M0 's sequel
SELECT count(*) WHERE {
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.writer.film ?x1 .
?x1 ns:film.film.prequel M0 .
FILTER ( M1 != ?x0 ) .
FILTER ( M2 != ?x0 ) .
FILTER ( M3 != ?x0 ) .
M1 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 .
M2 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 ?x0
}