Did M4 star a female person that directed M2 and M3
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.director.film M2 .
?x0 ns:film.director.film M3 .
?x0 ns:people.person.gender ns:m.02zsn .
M4 ns:film.film.starring/ns:film.performance.actor ?x0
}