Was M3 executive produced by M4 and executive produced by a cinematographer that was influenced by M1 and married M2
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:influence.influence_node.influenced_by 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 .
FILTER ( ?x0 != M2 ) .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.executive_produced_by M4
}