Was M1 a film director whose spouse married M0 's sequel 's sequel 's director
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 ns:film.director.film ?x2 .
?x2 ns:film.film.prequel ?x3 .
?x3 ns:film.film.prequel M0 .
FILTER ( ?x0 != ?x1 ) .
FILTER ( M1 != ?x0 ) .
M1 a ns:film.director .
M1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0
}