Did M1 influence M0 's prequel 's writer and executive producer and marry M2
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced ?x1 .
?x0 ns:film.writer.film ?x1 .
?x1 ns:film.film.sequel M0 .
FILTER ( M1 != M2 ) .
M1 ns:influence.influence_node.influenced ?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 M2
}