Did M3 and M5 star a actor of M0 , M1 , and M2 and star M4
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M0 .
?x0 ns:film.actor.film/ns:film.performance.character M1 .
?x0 ns:film.actor.film/ns:film.performance.character M2 .
M3 ns:film.film.starring/ns:film.performance.actor ?x0 .
M3 ns:film.film.starring/ns:film.performance.actor M4 .
M5 ns:film.film.starring/ns:film.performance.actor ?x0 .
M5 ns:film.film.starring/ns:film.performance.actor M4
}