Did M6 's German male spouse write M0 , M1 , M2 , and M3 and edit a film
SELECT count(*) WHERE {
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3 .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.0345h .
?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 M6 .
?x1 a ns:film.film .
FILTER ( ?x0 != M6 )
}