Were M4 and M6 directed by M5 and directed by a person that M1 , M2 , and M3 starred
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x0 ns:film.actor.film/ns:film.performance.film M3 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.directed_by M5 .
M6 ns:film.film.directed_by ?x0 .
M6 ns:film.film.directed_by M5
}