Were M2 , M4 , and M5 produced by M3 and executive produced by a cinematographer that married a film 's executive producer
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?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 ?x1 .
?x1 ns:film.producer.films_executive_produced ?x2 .
?x2 a ns:film.film .
FILTER ( ?x0 != ?x1 ) .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M5 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M3
}