What did a cinematographer whose spouse executive produced M1 write and executive produce
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:film.cinematographer .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x2 .
?x2 ns:film.producer.films_executive_produced M1 .
FILTER ( ?x1 != ?x2 )
}