question: Was M4 written by a Swedish female film editor 's spouse and produced by a company
query: 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 ?x1 .
  ?x1 a ns:film.editor .
  ?x1 ns:people.person.gender ns:m.02zsn .
  ?x1 ns:people.person.nationality ns:m.0d0vqn .
  ?x2 a ns:business.employer .
  FILTER ( ?x0 != ?x1 ) .
  M4 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
  M4 ns:film.film.written_by ?x0
  }