Was a screenwriter that was influenced by M0 's executive producer and married M3 and M4 M1
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
FILTER ( M1 != M3 ) .
FILTER ( M1 != M4 ) .
M1 a ns:film.writer .
M1 ns:influence.influence_node.influenced_by ?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 M3 .
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 M4
}