Were M2 , M3 , M4 , and M5 edited by a founder and employee of M1 and written by M0 's spouse
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 ns:organization.organization_founder.organizations_founded M1 .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
FILTER ( ?x0 != M0 ) .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.edited_by ?x1 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.written_by ?x0
}