Was a screenwriter a Swedish person whose male spouse edited M3 and produced M4
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 a ns:people.person .
?x0 ns:people.person.nationality ns:m.0d0vqn .
?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.editor.film M3 .
?x1 ns:film.producer.film|ns:film.production_company.films M4 .
?x1 ns:people.person.gender ns:m.05zppz .
FILTER ( ?x0 != ?x1 )
}