Were M3 , M4 , M5 , and M6 executive produced by a spouse of M0 and directed by a male cinematographer
SELECT count(*) WHERE {
?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 M0 .
?x1 a ns:film.cinematographer .
?x1 ns:people.person.gender ns:m.05zppz .
FILTER ( ?x0 != M0 ) .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.executive_produced_by ?x0 .
M6 ns:film.film.directed_by ?x1 .
M6 ns:film.film.executive_produced_by ?x0
}